mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
etnaviv: disable integer vertex formats on pre-HALTI2 hardware
Signed-off-by: Jonathan Marek <jonathan@marek.ca> Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
This commit is contained in:
parent
d34705c891
commit
017cbab5b0
1 changed files with 13 additions and 1 deletions
|
|
@ -434,6 +434,18 @@ gpu_supports_render_format(struct etna_screen *screen, enum pipe_format format,
|
|||
return true;
|
||||
}
|
||||
|
||||
static bool
|
||||
gpu_supports_vertex_format(struct etna_screen *screen, enum pipe_format format)
|
||||
{
|
||||
if (translate_vertex_format_type(format) == ETNA_NO_MATCH)
|
||||
return false;
|
||||
|
||||
if (util_format_is_pure_integer(format))
|
||||
return VIV_FEATURE(screen, chipMinorFeatures4, HALTI2);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool
|
||||
etna_screen_is_format_supported(struct pipe_screen *pscreen,
|
||||
enum pipe_format format,
|
||||
|
|
@ -472,7 +484,7 @@ etna_screen_is_format_supported(struct pipe_screen *pscreen,
|
|||
}
|
||||
|
||||
if (usage & PIPE_BIND_VERTEX_BUFFER) {
|
||||
if (translate_vertex_format_type(format) != ETNA_NO_MATCH)
|
||||
if (gpu_supports_vertex_format(screen, format))
|
||||
allowed |= PIPE_BIND_VERTEX_BUFFER;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue