mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 15:58:05 +02:00
brw: Pass write back register for ray query messages
For DG2 (Bspec 47937) has the same programming note as of Xe2+, "When this bit is set in the header, Trace Ray Message behaves like a Ray Query. This message requires a write-back message indicating RayQuery for all valid Rays (SIMD lanes) have completed." So this patch is just passing a write back destination register when we have ray query message. Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41039>
This commit is contained in:
parent
64bc538f5e
commit
620835926d
1 changed files with 2 additions and 4 deletions
|
|
@ -5848,15 +5848,13 @@ brw_from_nir_emit_intrinsic(nir_to_brw_state &ntb,
|
|||
srcs[RT_LOGICAL_SRC_TRACE_RAY_CONTROL] = get_nir_src(ntb, instr->src[2], 0);
|
||||
srcs[RT_LOGICAL_SRC_SYNCHRONOUS] = brw_imm_ud(synchronous);
|
||||
|
||||
/* Bspec 57508: Structure_SIMD16TraceRayMessage:: RayQuery Enable
|
||||
/* Bspec 57508, 47937: Structure_SIMD16TraceRayMessage:: RayQuery Enable
|
||||
*
|
||||
* "When this bit is set in the header, Trace Ray Message behaves like
|
||||
* a Ray Query. This message requires a write-back message indicating
|
||||
* RayQuery for all valid Rays (SIMD lanes) have completed."
|
||||
*/
|
||||
brw_reg dst = (devinfo->ver >= 20 && synchronous) ?
|
||||
bld.vgrf(BRW_TYPE_UD) :
|
||||
bld.null_reg_ud();
|
||||
brw_reg dst = synchronous ? bld.vgrf(BRW_TYPE_UD) : bld.null_reg_ud();
|
||||
|
||||
bld.emit(RT_OPCODE_TRACE_RAY_LOGICAL, dst, srcs, RT_LOGICAL_NUM_SRCS);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue