etnaviv: disable ARB_shadow
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Mon, 17 Jun 2019 22:52:19 +0000 (00:52 +0200)
committerChristian Gmeiner <christian.gmeiner@gmail.com>
Wed, 18 Sep 2019 04:47:26 +0000 (06:47 +0200)
Looks like only HALT2 GPUs have support for it but that is not yet
implemented so disable ARB_shadow for now.

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/gallium/drivers/etnaviv/etnaviv_screen.c

index c1cc56bc34ba6453da10f1e287340604466fb23a..b93eaf2ae7f7248ea4dc71e6e9ccff1fd2596980 100644 (file)
@@ -192,6 +192,8 @@ etna_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
       return 255;
 
    /* Texturing. */
+   case PIPE_CAP_TEXTURE_SHADOW_MAP:
+      return 0;
    case PIPE_CAP_MAX_TEXTURE_2D_SIZE:
    case PIPE_CAP_MAX_TEXTURE_ARRAY_LAYERS: /* TODO: verify */
       return screen->specs.max_texture_size;