assembler: Don't use GL types
authorDamien Lespiau <damien.lespiau@intel.com>
Mon, 4 Feb 2013 12:02:18 +0000 (12:02 +0000)
committerDamien Lespiau <damien.lespiau@intel.com>
Mon, 4 Mar 2013 15:54:42 +0000 (15:54 +0000)
commitf0365d40b4e83d13c1865d48e571271737a58c65
tree5bc8d94606f115b9fa4b91c03c08b9336ce8d4ec
parent2d8b92a24b2d6aebe2ced1f014b6c3129f86b91c
assembler: Don't use GL types

sed -i -e 's/GLuint/unsigned/g' -e 's/GLint/int/g' \
       -e 's/GLfloat/float/g' -e 's/GLubyte/uint8_t/g' \
       -e 's/GLshort/int16_t/g' assembler/*.[ch]

Drop the GL types here, they don't bring anything to the table. For
instance, GLuint has no guarantee to be 32 bits, so it does not make too
much sense to use it in structure describing hardware tables and
opcodes.

Of course, some bikeshedding can be applied to use uin32_t instead, I
figured that some of the GLuint are used without size constraints, so
a sed with uint32_t did not seem the right thing to do. On top of that
initial sed, one bothered enough could change the structures with size
constraints to actually use uint32_t.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
assembler/brw_disasm.c
assembler/brw_eu.c
assembler/brw_eu.h
assembler/brw_eu_emit.c
assembler/brw_eu_util.c
assembler/brw_structs.h
assembler/gen4asm.h
assembler/gram.y