Reported by Ian Romanick.
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5016>
'GLboolean': 1,
'GLbyte': 1,
'GLubyte': 1,
- 'GLenum': 2, # uses GLenum16
'GLshort': 2,
'GLushort': 2,
+ 'GLenum': 4,
'GLint': 4,
'GLuint': 4,
'GLbitfield': 4,
out('{0} {1}[{2}];'.format(
p.get_base_type_string(), p.name, p.count))
else:
- type = p.type_string()
- if type == 'GLenum':
- type = 'GLenum16'
- out('{0} {1};'.format(type, p.name))
+ out('{0} {1};'.format(p.type_string(), p.name))
for p in func.variable_params:
if p.img_null_flag:
struct marshal_cmd_DrawArraysInstancedBaseInstance
{
struct marshal_cmd_base cmd_base;
- GLenum16 mode;
+ GLenum mode;
GLint first;
GLsizei count;
GLsizei instance_count;
struct marshal_cmd_MultiDrawArrays
{
struct marshal_cmd_base cmd_base;
- GLenum16 mode;
+ GLenum mode;
GLsizei draw_count;
GLuint non_vbo_attrib_mask;
};
{
struct marshal_cmd_base cmd_base;
bool index_bounds_valid;
- GLenum16 mode;
- GLenum16 type;
+ GLenum mode;
+ GLenum type;
GLsizei count;
GLsizei instance_count;
GLint basevertex;
{
struct marshal_cmd_base cmd_base;
bool has_base_vertex;
- GLenum16 mode;
- GLenum16 type;
+ GLenum mode;
+ GLenum type;
GLsizei draw_count;
GLuint non_vbo_attrib_mask;
struct gl_buffer_object *index_buffer;