Correct precision qualification on built-in functions.
This is a replacement commit for pull request #238. This is a design change, followed by implementation change that A) fixes the changes caused by the design change, and B) fixes some cases that were originally incorrect. The design change is to not give built-in functions default precision qualification. This is to allow the rule that the precision of some built-in functions adopt their precision qualification from the calling arguments. This is A above. A consequence of this design change is that all built-ins that are supposed to have an explicit precision qualifier must now be declared that way. So, a lot more built-in declarations now have precision qualifiers, just to keep things the same. This is B above.
This commit is contained in:
@@ -24,18 +24,18 @@ ERROR: node is still EOpNull!
|
||||
0:42 Function Definition: main( (global void)
|
||||
0:42 Function Parameters:
|
||||
0:44 Sequence
|
||||
0:44 texture (global mediump 4-component vector of int)
|
||||
0:44 texture (global lowp 4-component vector of int)
|
||||
0:44 sampler: direct index for structure (global lowp isampler3D)
|
||||
0:44 's' (uniform structure{global mediump 4-component vector of float u, global mediump 4-component vector of uint v, global lowp isampler3D sampler, global mediump 3-component vector of float w, global structure{global mediump int a} t})
|
||||
0:44 Constant:
|
||||
0:44 2 (const int)
|
||||
0:44 Construct vec3 (temp mediump 3-component vector of float)
|
||||
0:44 Convert int to float (temp mediump float)
|
||||
0:44 Construct vec3 (temp lowp 3-component vector of float)
|
||||
0:44 Convert int to float (temp lowp float)
|
||||
0:44 ni: direct index for structure (layout(column_major shared ) uniform mediump int)
|
||||
0:44 'inst' (layout(column_major shared ) uniform block{layout(column_major shared ) uniform mediump 4-component vector of uint nbv, layout(column_major shared ) uniform mediump int ni})
|
||||
0:44 Constant:
|
||||
0:44 1 (const int)
|
||||
0:44 Convert uint to float (temp mediump float)
|
||||
0:44 Convert uint to float (temp lowp float)
|
||||
0:44 direct index (temp mediump uint)
|
||||
0:44 bv: direct index for structure (layout(column_major shared ) uniform mediump 4-component vector of uint)
|
||||
0:44 'anon@0' (layout(column_major shared ) uniform block{layout(column_major shared ) uniform mediump 4-component vector of uint bv, layout(column_major shared ) uniform mediump 2X2 matrix of float bm2, layout(column_major shared ) uniform lowp isampler2D sampler, layout(column_major shared ) uniform structure{global mediump int a} t, layout(column_major shared ) uniform structure{global mediump 4-component vector of float u, global mediump 4-component vector of uint v, global lowp isampler3D sampler, global mediump 3-component vector of float w, global structure{global mediump int a} t} fbs})
|
||||
@@ -43,7 +43,7 @@ ERROR: node is still EOpNull!
|
||||
0:44 0 (const uint)
|
||||
0:44 Constant:
|
||||
0:44 1 (const int)
|
||||
0:44 Convert uint to float (temp mediump float)
|
||||
0:44 Convert uint to float (temp lowp float)
|
||||
0:44 direct index (temp mediump uint)
|
||||
0:44 nbv: direct index for structure (layout(column_major shared ) uniform mediump 4-component vector of uint)
|
||||
0:44 direct index (layout(column_major shared ) temp block{layout(column_major shared ) uniform mediump 4-component vector of uint nbv, layout(column_major shared ) uniform mediump int ni})
|
||||
@@ -92,18 +92,18 @@ ERROR: node is still EOpNull!
|
||||
0:42 Function Definition: main( (global void)
|
||||
0:42 Function Parameters:
|
||||
0:44 Sequence
|
||||
0:44 texture (global mediump 4-component vector of int)
|
||||
0:44 texture (global lowp 4-component vector of int)
|
||||
0:44 sampler: direct index for structure (global lowp isampler3D)
|
||||
0:44 's' (uniform structure{global mediump 4-component vector of float u, global mediump 4-component vector of uint v, global lowp isampler3D sampler, global mediump 3-component vector of float w, global structure{global mediump int a} t})
|
||||
0:44 Constant:
|
||||
0:44 2 (const int)
|
||||
0:44 Construct vec3 (temp mediump 3-component vector of float)
|
||||
0:44 Convert int to float (temp mediump float)
|
||||
0:44 Construct vec3 (temp lowp 3-component vector of float)
|
||||
0:44 Convert int to float (temp lowp float)
|
||||
0:44 ni: direct index for structure (layout(column_major shared ) uniform mediump int)
|
||||
0:44 'inst' (layout(column_major shared ) uniform block{layout(column_major shared ) uniform mediump 4-component vector of uint nbv, layout(column_major shared ) uniform mediump int ni})
|
||||
0:44 Constant:
|
||||
0:44 1 (const int)
|
||||
0:44 Convert uint to float (temp mediump float)
|
||||
0:44 Convert uint to float (temp lowp float)
|
||||
0:44 direct index (temp mediump uint)
|
||||
0:44 bv: direct index for structure (layout(column_major shared ) uniform mediump 4-component vector of uint)
|
||||
0:44 'anon@0' (layout(column_major shared ) uniform block{layout(column_major shared ) uniform mediump 4-component vector of uint bv, layout(column_major shared ) uniform mediump 2X2 matrix of float bm2, layout(column_major shared ) uniform lowp isampler2D sampler, layout(column_major shared ) uniform structure{global mediump int a} t, layout(column_major shared ) uniform structure{global mediump 4-component vector of float u, global mediump 4-component vector of uint v, global lowp isampler3D sampler, global mediump 3-component vector of float w, global structure{global mediump int a} t} fbs})
|
||||
@@ -111,7 +111,7 @@ ERROR: node is still EOpNull!
|
||||
0:44 0 (const uint)
|
||||
0:44 Constant:
|
||||
0:44 1 (const int)
|
||||
0:44 Convert uint to float (temp mediump float)
|
||||
0:44 Convert uint to float (temp lowp float)
|
||||
0:44 direct index (temp mediump uint)
|
||||
0:44 nbv: direct index for structure (layout(column_major shared ) uniform mediump 4-component vector of uint)
|
||||
0:44 direct index (layout(column_major shared ) temp block{layout(column_major shared ) uniform mediump 4-component vector of uint nbv, layout(column_major shared ) uniform mediump int ni})
|
||||
|
||||
Reference in New Issue
Block a user