mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 18:28:12 +02:00
glthread: use GLenum16 in batch buffers to save space
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4758>
This commit is contained in:
parent
b6b1ab8d54
commit
6f8a387b37
1 changed files with 4 additions and 1 deletions
|
|
@ -153,7 +153,10 @@ class PrintCode(gl_XML.gl_print_base):
|
|||
out('{0} {1}[{2}];'.format(
|
||||
p.get_base_type_string(), p.name, p.count))
|
||||
else:
|
||||
out('{0} {1};'.format(p.type_string(), p.name))
|
||||
type = p.type_string()
|
||||
if type == 'GLenum':
|
||||
type = 'GLenum16'
|
||||
out('{0} {1};'.format(type, p.name))
|
||||
|
||||
for p in func.variable_params:
|
||||
if p.img_null_flag:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue