i965: add support for image AoA
authorTimothy Arceri <t_arceri@yahoo.com.au>
Fri, 30 Oct 2015 23:31:37 +0000 (10:31 +1100)
committerTimothy Arceri <t_arceri@yahoo.com.au>
Wed, 4 Nov 2015 02:38:32 +0000 (13:38 +1100)
commitfb77da89f51fd82d5cee95400acb20ad74d9e7bc
tree02dc302c5c72b7c243ffdf851e405596da7dce7e
parent9285ed98f7557722fbb94f47c5bc138ef5dd9c70
i965: add support for image AoA

V3: clamp array index to the correct size (the size of the current array
rather than the inner array) Francisco Jerez.

V2: avoid useless zero-initialization and addition for the first AoA level,
avoid redundant temporary, make use of type_size_scalar(), rename aoa_size
to element_size, assign the indirect indexing temporary directly to
image.reladdr, and replace while loop with a for loop. All suggested
by Francisco Jerez.

Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/mesa/drivers/dri/i965/brw_fs_nir.cpp
src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp