mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 20:10:17 +01:00
freedreno/ir3: Handle sized tex destination types
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7989>
This commit is contained in:
parent
acd6616eab
commit
23beffadea
1 changed files with 1 additions and 1 deletions
|
|
@ -2522,7 +2522,7 @@ emit_tex(struct ir3_context *ctx, nir_tex_instr *tex)
|
|||
if (opc == OPC_GETLOD) {
|
||||
struct ir3_instruction *factor = create_immed(b, fui(1.0 / 256));
|
||||
|
||||
compile_assert(ctx, tex->dest_type == nir_type_float);
|
||||
compile_assert(ctx, nir_alu_type_get_base_type(tex->dest_type) == nir_type_float);
|
||||
for (i = 0; i < 2; i++) {
|
||||
dst[i] = ir3_MUL_F(b, ir3_COV(b, dst[i], TYPE_S32, TYPE_F32), 0,
|
||||
factor, 0);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue