OSDN Git Service

intel/compiler: Use two components for 1D array image sizes
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 16 Aug 2018 15:16:41 +0000 (10:16 -0500)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 29 Aug 2018 19:04:02 +0000 (14:04 -0500)
commit42891438990ce170a2ce08f71a1360842d5897a1
tree80629d8a7521b059fc7ee78e4983700c5ee843d2
parentb1c414ef2834cfe5f764f5af0ff2ad09d4584351
intel/compiler: Use two components for 1D array image sizes

Having the array length component stored in .z was a small convenience
for the ISL image param filling code and an annoyance in the NIR
lowering code.  The only convenience of treating 1D arrays like 2D
arrays in the lowering code is in the address calculation code so let's
put all the complexity there as well.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/compiler/brw_nir_lower_image_load_store.c
src/intel/isl/isl_storage_image.c