mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 18:20:10 +01:00
nir: lower_tex: Don't normalize coordinates for TXF with RECT
v2: remove the option to actually request normalization and its
application in Intel < Gen6 (Jason)
v3: Also don't lower for query operations (Jason)
Fixes: 1ce8060c25
nir/lower_tex: support for lowering RECT textures
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5105>
(cherry picked from commit 682e14d3ea)
This commit is contained in:
parent
31cf682484
commit
5f1f6ee8c6
2 changed files with 3 additions and 2 deletions
|
|
@ -1039,7 +1039,7 @@
|
|||
"description": "nir: lower_tex: Don't normalize coordinates for TXF with RECT",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "1ce8060c25c7f2c7a54159fab6a6974c0ba182a8"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -958,7 +958,8 @@ nir_lower_tex_block(nir_block *block, nir_builder *b,
|
|||
progress = lower_offset(b, tex) || progress;
|
||||
}
|
||||
|
||||
if ((tex->sampler_dim == GLSL_SAMPLER_DIM_RECT) && options->lower_rect) {
|
||||
if ((tex->sampler_dim == GLSL_SAMPLER_DIM_RECT) && options->lower_rect &&
|
||||
tex->op != nir_texop_txf && !nir_tex_instr_is_query(tex)) {
|
||||
lower_rect(b, tex);
|
||||
progress = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue