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:
@@ -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:
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user