summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r200/server
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2011-11-08 19:26:38 -0800
committerEric Anholt <[email protected]>2011-11-09 12:59:19 -0800
commite19dfc75b67e263437bd08b161c15b34582ccb2f (patch)
tree5213043187b9aa2769a0b0b34e65f43b54016ee7 /src/mesa/drivers/dri/r200/server
parenta00c5a71cd95d340f9ba54a0360f654414d627d2 (diff)
i965: Make brw_type_for_base_type return the element type for arrays.
Previously, brw_type_for_base_type returned UD for array variables, similar to structures. For structures, each field may have a different type, so every field access must explicitly override the register's type with that field's type. We chose to return UD in this case since it was the least common, so errors would be more obvious. For arrays, it makes far more sense to return the type corresponding to an element of the array. This allows normal array access to work without the hassle of explicitly overriding the register's type. This should obsolete a bunch of type overrides throughout the code. Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/r200/server')
0 files changed, 0 insertions, 0 deletions