etnaviv: drm: Remove fallback value for ETNA_GPU_NUM_CONSTANTS

The kernel commit a8c21a5451d8 ("drm/etnaviv: add initial etnaviv DRM driver") has this
fallback logic already.

Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28574>
This commit is contained in:
Christian Gmeiner
2024-04-08 16:29:13 +02:00
committed by Marge Bot
parent 57a662fc4c
commit b9c80ee59e

View File

@@ -183,10 +183,6 @@ query_limits_from_kernel(struct etna_gpu *gpu)
info->gpu.pixel_pipes = val;
etna_gpu_get_param(gpu, ETNA_GPU_NUM_CONSTANTS, &val);
if (val == 0) {
fprintf(stderr, "Warning: zero num constants (update kernel?)\n");
val = 168;
}
info->gpu.num_constants = val;
etna_gpu_get_param(gpu, ETNA_GPU_NUM_VARYINGS, &val);