radv: do not harcode the pipeline stats mask for query resolves
Otherwise, mesh/task shader invocations would be ignored. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25950>
This commit is contained in:
committed by
Marge Bot
parent
272ad65397
commit
48aabaf225
@@ -1134,7 +1134,7 @@ radv_query_shader(struct radv_cmd_buffer *cmd_buffer, VkPipeline *pipeline, stru
|
|||||||
.range = VK_WHOLE_SIZE}}});
|
.range = VK_WHOLE_SIZE}}});
|
||||||
|
|
||||||
/* Encode the number of elements for easy access by the shader. */
|
/* Encode the number of elements for easy access by the shader. */
|
||||||
pipeline_stats_mask &= 0x7ff;
|
pipeline_stats_mask &= (1 << radv_get_pipelinestat_query_size(device)) - 1;
|
||||||
pipeline_stats_mask |= util_bitcount(pipeline_stats_mask) << 16;
|
pipeline_stats_mask |= util_bitcount(pipeline_stats_mask) << 16;
|
||||||
|
|
||||||
avail_offset -= src_offset;
|
avail_offset -= src_offset;
|
||||||
|
|||||||
Reference in New Issue
Block a user