this is illegal in vulkan, so zink needs to be able to lower these
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15510>
unsigned lower_txp;
/**
+ * If true, lower texture projector for any array sampler dims
+ */
+ bool lower_txp_array;
+
+ /**
* If true, lower away nir_tex_src_offset for all texelfetch instructions.
*/
bool lower_txf_offset;
/* If we are clamping any coords, we must lower projector first
* as clamping happens *after* projection:
*/
- if (lower_txp || sat_mask) {
+ if (lower_txp || sat_mask ||
+ (options->lower_txp_array && tex->is_array)) {
progress |= project_src(b, tex);
}