r600: Turn 'r600_shader_key' struct into union
authorEdward O'Callaghan <eocallaghan@alterapraxis.com>
Wed, 19 Aug 2015 08:58:47 +0000 (18:58 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 20 Aug 2015 23:46:13 +0000 (09:46 +1000)
commit7a32652231f96eac14c4bfce02afe77b4132fb77
treefb630dbff896925640d2d03d8bfc0dd6d68cfa9e
parente2145de74d6333f099613c595c5c46f79f54e59f
r600: Turn 'r600_shader_key' struct into union

This struct was getting a bit crowded, following the lead of
radeonsi, mirror the idea of having sub-structures for each
shader type. Turning 'r600_shader_key' into an union saves
some trivial memory and CPU cycles for the shader keys.

[airlied: drop as_ls, and reorder so larger fields at start.]
Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/r600_pipe.h
src/gallium/drivers/r600/r600_shader.c
src/gallium/drivers/r600/r600_shader.h
src/gallium/drivers/r600/r600_state_common.c