diff options
author | Samuel Pitoiset <[email protected]> | 2017-09-26 16:52:06 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-09-26 23:14:48 +0200 |
commit | 4b407a62c757c8344736caa200e706d2bd66fb2c (patch) | |
tree | dc0f7e35fa96dca8144149a2aa4b7cfd8bf4238d /src/amd/vulkan/radv_query.c | |
parent | 5b7e65136440f60a6afe85c9517f42861ee07224 (diff) |
radv: fix saved compute state when doing statistics/occlusion queries
We are pushing 16-bytes of constants, so we have to save/restore
the same amount of data to avoid data corruption.
Cc: 17.2 <[email protected]>
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_query.c')
-rw-r--r-- | src/amd/vulkan/radv_query.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/amd/vulkan/radv_query.c b/src/amd/vulkan/radv_query.c index 4f79db4a93b..1dbc493e1b7 100644 --- a/src/amd/vulkan/radv_query.c +++ b/src/amd/vulkan/radv_query.c @@ -653,7 +653,7 @@ static void radv_query_shader(struct radv_cmd_buffer *cmd_buffer, struct radv_device *device = cmd_buffer->device; struct radv_meta_saved_compute_state saved_state; - radv_meta_save_compute(&saved_state, cmd_buffer, 4); + radv_meta_save_compute(&saved_state, cmd_buffer, 16); struct radv_buffer dst_buffer = { .bo = dst_bo, @@ -737,7 +737,7 @@ static void radv_query_shader(struct radv_cmd_buffer *cmd_buffer, RADV_CMD_FLAG_INV_VMEM_L1 | RADV_CMD_FLAG_CS_PARTIAL_FLUSH; - radv_meta_restore_compute(&saved_state, cmd_buffer, 4); + radv_meta_restore_compute(&saved_state, cmd_buffer, 16); } VkResult radv_CreateQueryPool( |