summaryrefslogtreecommitdiff
path: root/src/compiler/nir/nir_validate.c
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>2024-04-27 11:34:19 -0400
committerMarge Bot <emma+marge@anholt.net>2024-05-14 04:57:24 +0000
commit2912f531a7937cef03e279b8ff82f5a85fd53d15 (patch)
treeb85b65be276594773cbff00d70be60fc832b5662 /src/compiler/nir/nir_validate.c
parent8b9ed851ec9f9aa2d5ce3d1a3a601b4cc756185f (diff)
nir: add texops for AGX border colour emulation
AGX has limited border colour hardware. To support full customBorderColorWithoutFormat semantics, we're forced to emulate in shaders at a substantial performance penalty. Actually, that's needed just to pass CTS because of other hardware issues stacking on top of each others... Hooray! Add the texops we need to facilitate efficient custom border colour lowering. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Acked-by: Faith Ekstrand <faith.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29179>
Diffstat (limited to 'src/compiler/nir/nir_validate.c')
-rw-r--r--src/compiler/nir/nir_validate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_validate.c b/src/compiler/nir/nir_validate.c
index f67ce47f223..4bd938afeee 100644
--- a/src/compiler/nir/nir_validate.c
+++ b/src/compiler/nir/nir_validate.c
@@ -852,12 +852,14 @@ validate_tex_instr(nir_tex_instr *instr, validate_state *state)
switch (instr->op) {
case nir_texop_descriptor_amd:
case nir_texop_sampler_descriptor_amd:
+ case nir_texop_custom_border_color_agx:
break;
case nir_texop_lod:
case nir_texop_lod_bias_agx:
validate_assert(state, nir_alu_type_get_base_type(instr->dest_type) == nir_type_float);
break;
case nir_texop_samples_identical:
+ case nir_texop_has_custom_border_color_agx:
validate_assert(state, nir_alu_type_get_base_type(instr->dest_type) == nir_type_bool);
break;
case nir_texop_txs: