brw: Replace fs_inst::target field with logical FB read/write sources
We can just specify this as a source to the logical FB read/write opcodes. Notably FB reads had no sources before; now they have one. Reviewed-by: Caio Oliveira <caio.oliveira@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33297>
This commit is contained in:
committed by
Marge Bot
parent
32dd722ff3
commit
accef5e8f5
@@ -3750,8 +3750,8 @@ emit_non_coherent_fb_read(nir_to_brw_state &ntb, const brw_builder &bld, const b
|
||||
static brw_inst *
|
||||
emit_coherent_fb_read(const brw_builder &bld, const brw_reg &dst, unsigned target)
|
||||
{
|
||||
brw_inst *inst = bld.emit(FS_OPCODE_FB_READ_LOGICAL, dst);
|
||||
inst->target = target;
|
||||
brw_inst *inst =
|
||||
bld.emit(FS_OPCODE_FB_READ_LOGICAL, dst, brw_imm_ud(target));
|
||||
inst->size_written = 4 * inst->dst.component_size(inst->exec_size);
|
||||
|
||||
return inst;
|
||||
|
||||
Reference in New Issue
Block a user