ir3/nir: Set up image_dims consts for image_deref_size intrinsic too
authorEduardo Lima Mitev <elima@igalia.com>
Sun, 21 Oct 2018 18:48:41 +0000 (20:48 +0200)
committerEduardo Lima Mitev <elima@igalia.com>
Sun, 21 Oct 2018 19:29:18 +0000 (21:29 +0200)
commitfdd926d5b28aa4b1264c92b8189349caf847c725
treef9a07a34b62bc315850606b48c7d116576f88c01
parent2d235d69c825a22f218507fd2ba186973ba79002
ir3/nir: Set up image_dims consts for image_deref_size intrinsic too

`nir_intrinsic_image_deref_size` is not being considered during scan for
driver constants, so image constants are not emitted if a shader
only ever query the size of an image (no load, store, atomic op, etc).
This is unlikely, but possible.

Reviewed-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/ir3/ir3_nir.c