llvmpipe: report the proper subgroup size

Signed-off-by: Karol Herbst <git@karolherbst.de>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22893>
This commit is contained in:
Karol Herbst
2023-05-11 13:27:38 +02:00
committed by Marge Bot
parent 1e655b2f25
commit 5afed06615
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -534,7 +534,7 @@ llvmpipe_get_compute_param(struct pipe_screen *_screen,
case PIPE_COMPUTE_CAP_SUBGROUP_SIZE:
if (ret) {
uint32_t *subgroup_size = ret;
*subgroup_size = 32;
*subgroup_size = lp_native_vector_width / 32;
}
return sizeof(uint32_t);
case PIPE_COMPUTE_CAP_MAX_COMPUTE_UNITS:
+1 -1
View File
@@ -922,7 +922,7 @@ llvmpipe_get_compute_state_info(struct pipe_context *pipe, void *cs,
struct nir_shader* nir = shader->base.ir.nir;
info->max_threads = 1024;
info->preferred_simd_size = 32;
info->preferred_simd_size = lp_native_vector_width / 32;
// TODO: this is a bad estimate, but not much we can do without actually compiling the shaders
info->private_memory = nir->scratch_size;
}