diff options
author | Iago Toral Quiroga <[email protected]> | 2015-11-10 08:22:07 +0200 |
---|---|---|
committer | Tapani Pälli <[email protected]> | 2015-11-12 09:50:13 +0200 |
commit | f84bc57d7dc02fceb805803131426c791eadeff9 (patch) | |
tree | 3139b636c28a2242c6472f68c2c14532e173095e /src/glsl/lower_packed_varyings.cpp | |
parent | 9a00e1a69deba6ffc4c21fdaa77de4a3d74717ba (diff) |
glsl: Add precision information to ir_variable
We will need this later on when we implement proper support for
precision qualifiers in the drivers and also to do link time checks for
uniforms as indicated by the spec.
This patch also adds compile-time checks for variables without precision
information (currently, Mesa only checks that a default precision is set
for floats in fragment shaders).
As indicated by Ian, the addition of the precision information to
ir_variable has been done using a bitfield and pahole to identify an
available hole so that memory requirements for ir_variable stay the
same.
v2 (Ian):
- Avoid if-ladders by defining arrays of supported sampler names and
indexing
into them with type->sampler_array + 2 * type->sampler_shadow
- Make the code that selects the precision qualifier to use an utility
function
- Fix a typo
v3 (Tapani):
- rebased
- squashed in "Precision qualifiers are not allowed on structs"
- fixed select_gles_precision for sampler arrays
- fixed precision_qualifier_allowed for arrays of structs
v4 (Tapani):
- add atomic_uint handling
- do not allow precision qualifier on images
(issues reported by Marta)
v5 (Tapani):
- support precision qualifier on image types
v6 (Tapani):
- set precision qualifier on interface block members
Reviewed-by: Samuel Iglesias Gonsálvez <[email protected]>
Diffstat (limited to 'src/glsl/lower_packed_varyings.cpp')
0 files changed, 0 insertions, 0 deletions