mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
etnaviv: Do expose 2D texture support on pre-halti GPUs
Commitd08bd9a8d8("etnaviv: don't expose array and 3D texture support on pre-halti GPUs") started returning 0 from PIPE_CAP_MAX_TEXTURE_2D_SIZE as well due to switch case fallthrough. Reinstate the behavior of PIPE_CAP_MAX_TEXTURE_2D_SIZE, while at the same time, retain the new behavior introduced by commitd08bd9a8d8, Otherwise not even kmscube displays the spinning cube, weston does not display desktop and so on. Triggered on "Vivante GC600 rev 4653" , i.MX8M Mini . Fixes:d08bd9a8d8("etnaviv: don't expose array and 3D texture support on pre-halti GPUs") Closes: #7898 Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com> Signed-off-by: Marek Vasut <marex@denx.de> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20373>
This commit is contained in:
parent
486c341769
commit
18f4dc6b75
1 changed files with 1 additions and 0 deletions
|
|
@ -213,6 +213,7 @@ etna_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
|
|||
case PIPE_CAP_TEXTURE_SHADOW_MAP:
|
||||
return 1;
|
||||
case PIPE_CAP_MAX_TEXTURE_2D_SIZE:
|
||||
return screen->specs.max_texture_size;
|
||||
case PIPE_CAP_MAX_TEXTURE_ARRAY_LAYERS: /* TODO: verify */
|
||||
return screen->specs.halti >= 0 ? screen->specs.max_texture_size : 0;
|
||||
case PIPE_CAP_MAX_TEXTURE_3D_LEVELS:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue