projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b7e651
)
radv: fix saved compute state when doing statistics/occlusion queries
author
Samuel Pitoiset
<samuel.pitoiset@gmail.com>
Tue, 26 Sep 2017 14:52:06 +0000
(16:52 +0200)
committer
Samuel Pitoiset
<samuel.pitoiset@gmail.com>
Tue, 26 Sep 2017 21:14:48 +0000
(23:14 +0200)
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 <mesa-stable@lists.freedesktop.org>
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_query.c
patch
|
blob
|
history
diff --git
a/src/amd/vulkan/radv_query.c
b/src/amd/vulkan/radv_query.c
index 4f79db4a93b6af947e2b493ddd8f2f06fa8f671a..1dbc493e1b74d431cbac37b5de7ad3c9448692b8 100644
(file)
--- 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(