summaryrefslogtreecommitdiffstats
path: root/src/mesa/program
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-11-16 04:32:33 +0100
committerMarek Olšák <[email protected]>2018-02-13 01:00:45 +0100
commit4794fbc86e3f2cb9e02747894655c9e4432c2738 (patch)
tree21622963f1269c92dea2972c27ba7dbe7b0f3b49 /src/mesa/program
parente149a0253c12d103805230bc7bc0a36887c3b8df (diff)
mesa: reduce the size of gl_program_parameter
40 -> 24 bytes, which includes the gl_state_index16 change. Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/program')
-rw-r--r--src/mesa/program/prog_parameter.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/program/prog_parameter.h b/src/mesa/program/prog_parameter.h
index ce5d2cbaabc..41b3fe838a8 100644
--- a/src/mesa/program/prog_parameter.h
+++ b/src/mesa/program/prog_parameter.h
@@ -60,15 +60,15 @@ typedef union gl_constant_value
struct gl_program_parameter
{
const char *Name; /**< Null-terminated string */
- gl_register_file Type; /**< PROGRAM_CONSTANT or STATE_VAR */
- GLenum DataType; /**< GL_FLOAT, GL_FLOAT_VEC2, etc */
+ gl_register_file Type:16; /**< PROGRAM_CONSTANT or STATE_VAR */
+ GLenum16 DataType; /**< GL_FLOAT, GL_FLOAT_VEC2, etc */
/**
* Number of components (1..4), or more.
* If the number of components is greater than 4,
* this parameter is part of a larger uniform like a GLSL matrix or array.
* The next program parameter's Size will be Size-4 of this parameter.
*/
- GLuint Size;
+ GLushort Size;
/**
* A sequence of STATE_* tokens and integers to identify GL state.
*/