mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 12:28:07 +02:00
zink: respect bit-size of dref-result
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10101>
This commit is contained in:
parent
ab1fc9e32c
commit
204cd1b893
1 changed files with 3 additions and 1 deletions
|
|
@ -3045,7 +3045,9 @@ emit_tex(struct ntv_context *ctx, nir_tex_instr *tex)
|
|||
}
|
||||
SpvId actual_dest_type = dest_type;
|
||||
if (dref)
|
||||
actual_dest_type = spirv_builder_type_float(&ctx->builder, 32);
|
||||
actual_dest_type =
|
||||
spirv_builder_type_float(&ctx->builder,
|
||||
nir_dest_bit_size(tex->dest));
|
||||
|
||||
SpvId result;
|
||||
if (offset)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue