etnaviv: add gpu_supports_texture_target(..)
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Fri, 9 Aug 2019 09:26:14 +0000 (11:26 +0200)
committerChristian Gmeiner <christian.gmeiner@gmail.com>
Fri, 9 Aug 2019 13:08:20 +0000 (13:08 +0000)
commitde5070ea8d0845e2d438513726fb0e19d68b895c
treeb310613a1db19322d11af5fc54e34ced22e8a41f
parent0141b7c6b25cd1cb7b4073c3905839b3e5e07413
etnaviv: add gpu_supports_texture_target(..)

Currently I am seeing a handful of the following debug message:
translate_texture_target:495: Unhandled texture target: 0

PIPE_BUFFER is not handled in translate_texture_target(..) which makes
sense as it is used to translate from PIPE_XXX to GPU specific value
during etna_create_sampler_view_state(..).

To fix this problem introduce gpu_supports_texture_target(..) which just
checks if the texture target is supported.

Fixes: dfe048058fa ("etnaviv: support 3D and 2D array textures")
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Jonathan Marek <jonathan@marek.ca>
src/gallium/drivers/etnaviv/etnaviv_screen.c