mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 20:50:09 +01:00
mesa: Make the gl_constant_value's bool occupy the same space as float/int.
At least for Intel, all our uniform components are of uint32_t size, either float or signed or unsigned int. For uploading uniform data in the driver, it's much easier to upload a full dword per uniform element instead of trying to pick out the bool byte and then fill in the top 3 bytes of pad with 0. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
55b7fbb70f
commit
7708b25e2b
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@
|
|||
typedef union gl_constant_value
|
||||
{
|
||||
GLfloat f;
|
||||
GLboolean b;
|
||||
GLint b;
|
||||
GLint i;
|
||||
GLuint u;
|
||||
} gl_constant_value;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue