mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-15 21:30:42 +01:00
intel/fs: fix framebuffer reads
We're missing some restrictions on those messages. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5292 Cc: mesa-stable Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12615>
This commit is contained in:
parent
451e97028e
commit
838c0e5eef
1 changed files with 14 additions and 0 deletions
|
|
@ -4871,6 +4871,20 @@ lower_fb_read_logical_send(const fs_builder &bld, fs_inst *inst)
|
|||
}
|
||||
}
|
||||
|
||||
/* BSpec 12470 (Gfx8-11), BSpec 47842 (Gfx12+) :
|
||||
*
|
||||
* "Must be zero for Render Target Read message."
|
||||
*
|
||||
* For bits :
|
||||
* - 14 : Stencil Present to Render Target
|
||||
* - 13 : Source Depth Present to Render Target
|
||||
* - 12 : oMask to Render Target
|
||||
* - 11 : Source0 Alpha Present to Render Target
|
||||
*/
|
||||
ubld.group(1, 0).AND(component(header, 0),
|
||||
component(header, 0),
|
||||
brw_imm_ud(~INTEL_MASK(14, 11)));
|
||||
|
||||
inst->resize_sources(1);
|
||||
inst->src[0] = header;
|
||||
inst->opcode = FS_OPCODE_FB_READ;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue