diff --git a/.pick_status.json b/.pick_status.json index a5c5f882397..f7f4d7d6aeb 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -2994,7 +2994,7 @@ "description": "radv: fix pipeline stats mask", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "48aabaf225f3ebf0bada2fe820d2c0f6288a3ca5", "notes": null diff --git a/src/amd/vulkan/radv_query.c b/src/amd/vulkan/radv_query.c index 0a215ba761d..df50f969f5e 100644 --- a/src/amd/vulkan/radv_query.c +++ b/src/amd/vulkan/radv_query.c @@ -1155,7 +1155,7 @@ radv_query_shader(struct radv_cmd_buffer *cmd_buffer, VkPipeline *pipeline, stru .range = VK_WHOLE_SIZE}}}); /* Encode the number of elements for easy access by the shader. */ - pipeline_stats_mask &= (1 << radv_get_pipelinestat_query_size(device)) - 1; + pipeline_stats_mask &= (1 << (radv_get_pipelinestat_query_size(device) / 8)) - 1; pipeline_stats_mask |= util_bitcount(pipeline_stats_mask) << 16; avail_offset -= src_offset;