iris: Disable unsupported mirror clamp modes
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 24 Jun 2018 00:30:18 +0000 (17:30 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:07 +0000 (10:26 -0800)
src/gallium/drivers/iris/iris_screen.c

index f954b9191fb5aa5ff5db33271f6691c96bb2f482..0e4ec8b1ddb18ea0e2cad33079c64ff59e8e08d8 100644 (file)
@@ -87,7 +87,7 @@ iris_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
    case PIPE_CAP_OCCLUSION_QUERY:
    case PIPE_CAP_QUERY_TIME_ELAPSED:
    case PIPE_CAP_TEXTURE_SWIZZLE:
-   case PIPE_CAP_TEXTURE_MIRROR_CLAMP:
+   case PIPE_CAP_TEXTURE_MIRROR_CLAMP_TO_EDGE:
    case PIPE_CAP_BLEND_EQUATION_SEPARATE:
    case PIPE_CAP_SM3:
    case PIPE_CAP_PRIMITIVE_RESTART:
@@ -166,6 +166,12 @@ iris_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
    case PIPE_CAP_PROGRAMMABLE_SAMPLE_LOCATIONS:
       return false;
 
+   case PIPE_CAP_TEXTURE_MIRROR_CLAMP:
+      /* Intel GPUs don't support PIPE_TEX_WRAP_MIRROR_CLAMP or
+       * PIPE_TEX_WRAP_MIRROR_CLAMP_TO_BORDER.
+       */
+      return false;
+
    case PIPE_CAP_MAX_DUAL_SOURCE_RENDER_TARGETS:
       return 1;
    case PIPE_CAP_MAX_RENDER_TARGETS: