Skip to content
Snippets Groups Projects
Commit 92c1290d authored by Brian Paul's avatar Brian Paul
Browse files

glsl: s/unsigned/glsl_base_type/ in glsl type code (v2)


Declare glsl_type::sampled_type as glsl_base_type as we do for the
base_type field.  And make base_type a bitfield to save a few bytes.

Update glsl_type constructor to take glsl_base_type instead of unsigned
and pass GLSL_TYPE_VOID instead of zero.

No Piglit regressions with llvmpipe.

v2:
- Declare both base_type and sampled_type as 8-bit fields
- Use the new ASSERT_BITFIELD_SIZE() macro.

Reviewed-by: default avatarNicolai Hähnle <nicolai.haehnle@amd.com>
parent 940fba68
No related branches found
Tags mesa-18.0.0-rc3
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment