mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
radv: spir-v allows texture size query with and without lod.
The translation to llvm was failing here due to required lod.
This fixes some new SteamVR shaders.
Cc: "13.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
(cherry picked from commit b1340fd708)
This commit is contained in:
parent
32adfd509d
commit
6a3b5f32c2
1 changed files with 4 additions and 1 deletions
|
|
@ -3416,7 +3416,10 @@ static void visit_tex(struct nir_to_llvm_context *ctx, nir_tex_instr *instr)
|
|||
address[count++] = sample_index;
|
||||
} else if(instr->op == nir_texop_txs) {
|
||||
count = 0;
|
||||
address[count++] = lod;
|
||||
if (lod)
|
||||
address[count++] = lod;
|
||||
else
|
||||
address[count++] = ctx->i32zero;
|
||||
}
|
||||
|
||||
for (chan = 0; chan < count; chan++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue