diff options
author | Jonathan Marek <[email protected]> | 2020-04-14 14:19:14 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-04-14 19:12:47 +0000 |
commit | aeb5b9cebf5c5fde2eed9be1d0ec64afd8aa8b6d (patch) | |
tree | e4cf92222979880d968e5e3a2cc70141c984eaf3 /src | |
parent | cb08f451d01571e0a570e99553624ae7b0d3d075 (diff) |
freedreno/ir3: fix emit_tex_info split_dest
Fixes a "free(): invalid next size (fast)" error in:
dEQP-VK.glsl.texture_functions.query.texturequerylevels.*
Signed-off-by: Jonathan Marek <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4557>
Diffstat (limited to 'src')
-rw-r--r-- | src/freedreno/ir3/ir3_compiler_nir.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/freedreno/ir3/ir3_compiler_nir.c b/src/freedreno/ir3/ir3_compiler_nir.c index 307eded893a..8c676b2f3ce 100644 --- a/src/freedreno/ir3/ir3_compiler_nir.c +++ b/src/freedreno/ir3/ir3_compiler_nir.c @@ -2515,8 +2515,7 @@ emit_tex_info(struct ir3_context *ctx, nir_tex_instr *tex, unsigned idx) /* even though there is only one component, since it ends * up in .y/.z/.w rather than .x, we need a split_dest() */ - if (idx) - ir3_split_dest(b, dst, sam, 0, idx + 1); + ir3_split_dest(b, dst, sam, idx, 1); /* The # of levels comes from getinfo.z. We need to add 1 to it, since * the value in TEX_CONST_0 is zero-based. |