summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_query.c
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2018-06-20 16:10:55 +0200
committerSamuel Pitoiset <[email protected]>2018-06-21 10:31:02 +0200
commit41f6096c26860e02d4377e58d93454965531ece8 (patch)
tree44de6f037b93d198868c8e51e61925c921aac76e /src/amd/vulkan/radv_query.c
parent53959fcbd88f38316359aa7b48cb9464c23eb870 (diff)
radv: use EOP_DATA_SEL_* instead of magic numbers
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_query.c')
-rw-r--r--src/amd/vulkan/radv_query.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/amd/vulkan/radv_query.c b/src/amd/vulkan/radv_query.c
index 559b7cd49dc..e1c91630ff4 100644
--- a/src/amd/vulkan/radv_query.c
+++ b/src/amd/vulkan/radv_query.c
@@ -1169,7 +1169,8 @@ static void emit_end_query(struct radv_cmd_buffer *cmd_buffer,
cmd_buffer->device->physical_device->rad_info.chip_class,
radv_cmd_buffer_uses_mec(cmd_buffer),
V_028A90_BOTTOM_OF_PIPE_TS, 0,
- 1, avail_va, 0, 1);
+ EOP_DATA_SEL_VALUE_32BIT,
+ avail_va, 0, 1);
break;
default:
unreachable("ending unhandled query type");
@@ -1292,13 +1293,15 @@ void radv_CmdWriteTimestamp(
cmd_buffer->device->physical_device->rad_info.chip_class,
mec,
V_028A90_BOTTOM_OF_PIPE_TS, 0,
- 3, query_va, 0, 0);
+ EOP_DATA_SEL_TIMESTAMP,
+ query_va, 0, 0);
si_cs_emit_write_event_eop(cs,
false,
cmd_buffer->device->physical_device->rad_info.chip_class,
mec,
V_028A90_BOTTOM_OF_PIPE_TS, 0,
- 1, avail_va, 0, 1);
+ EOP_DATA_SEL_VALUE_32BIT,
+ avail_va, 0, 1);
break;
}
query_va += pool->stride;