mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 07:08:04 +02:00
pan/mdg: Handle 16-bit ld_vary
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5283>
This commit is contained in:
parent
e58112bc08
commit
5f8dd413bc
1 changed files with 8 additions and 5 deletions
|
|
@ -1271,16 +1271,19 @@ emit_varying_read(
|
||||||
|
|
||||||
/* Use the type appropriate load */
|
/* Use the type appropriate load */
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case nir_type_uint:
|
case nir_type_uint32:
|
||||||
case nir_type_bool:
|
case nir_type_bool32:
|
||||||
ins.load_store.op = midgard_op_ld_vary_32u;
|
ins.load_store.op = midgard_op_ld_vary_32u;
|
||||||
break;
|
break;
|
||||||
case nir_type_int:
|
case nir_type_int32:
|
||||||
ins.load_store.op = midgard_op_ld_vary_32i;
|
ins.load_store.op = midgard_op_ld_vary_32i;
|
||||||
break;
|
break;
|
||||||
case nir_type_float:
|
case nir_type_float32:
|
||||||
ins.load_store.op = midgard_op_ld_vary_32;
|
ins.load_store.op = midgard_op_ld_vary_32;
|
||||||
break;
|
break;
|
||||||
|
case nir_type_float16:
|
||||||
|
ins.load_store.op = midgard_op_ld_vary_16;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
unreachable("Attempted to load unknown type");
|
unreachable("Attempted to load unknown type");
|
||||||
break;
|
break;
|
||||||
|
|
@ -1540,7 +1543,7 @@ emit_intrinsic(compiler_context *ctx, nir_intrinsic_instr *instr)
|
||||||
} else if (is_global || is_shared) {
|
} else if (is_global || is_shared) {
|
||||||
emit_global(ctx, &instr->instr, true, reg, src_offset, is_shared);
|
emit_global(ctx, &instr->instr, true, reg, src_offset, is_shared);
|
||||||
} else if (ctx->stage == MESA_SHADER_FRAGMENT && !ctx->is_blend) {
|
} else if (ctx->stage == MESA_SHADER_FRAGMENT && !ctx->is_blend) {
|
||||||
emit_varying_read(ctx, reg, offset, nr_comp, component, indirect_offset, t, is_flat);
|
emit_varying_read(ctx, reg, offset, nr_comp, component, indirect_offset, t | nir_dest_bit_size(instr->dest), is_flat);
|
||||||
} else if (ctx->is_blend) {
|
} else if (ctx->is_blend) {
|
||||||
/* For blend shaders, load the input color, which is
|
/* For blend shaders, load the input color, which is
|
||||||
* preloaded to r0 */
|
* preloaded to r0 */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue