mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 10:18:05 +02:00
anv: Fix condition to clear query pool with blorp
The comment above says it all, only when queue is not protected that
it is possible to clear query pool with blorp but it was checking
the opposite.
Fixes: d5b0526507 ("anv: propagate protected information for blorp operations")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31239>
This commit is contained in:
parent
0ced5663e2
commit
89c6fa1883
1 changed files with 1 additions and 1 deletions
|
|
@ -834,7 +834,7 @@ void genX(CmdResetQueryPool)(
|
|||
* mode.
|
||||
*/
|
||||
if (anv_cmd_buffer_is_render_or_compute_queue(cmd_buffer) &&
|
||||
(cmd_buffer->vk.pool->flags & VK_COMMAND_POOL_CREATE_PROTECTED_BIT) != 0 &&
|
||||
(cmd_buffer->vk.pool->flags & VK_COMMAND_POOL_CREATE_PROTECTED_BIT) == 0 &&
|
||||
queryCount >= pdevice->instance->query_clear_with_blorp_threshold) {
|
||||
trace_intel_begin_query_clear_blorp(&cmd_buffer->trace);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue