i915g: Set PIPE_CAP_MIN_MAP_BUFFER_ALIGNMENT to 64
authorSiavash Eliasi <siavashserver@gmail.com>
Tue, 3 Dec 2013 04:53:06 +0000 (08:23 +0330)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 29 Jan 2014 16:11:39 +0000 (09:11 -0700)
v2: Fixed setting switch cases prior to
PIPE_CAP_MIN_MAP_BUFFER_ALIGNMENT incorrectly.

src/gallium/drivers/i915/i915_screen.c

index 302992f5e84b4f8370f58fba233d2274f0bd0d7f..300233e70d041cc0d17db251a39ab0857fb93146 100644 (file)
@@ -211,7 +211,6 @@ i915_get_param(struct pipe_screen *screen, enum pipe_cap cap)
    case PIPE_CAP_QUERY_TIMESTAMP:
    case PIPE_CAP_QUERY_PIPELINE_STATISTICS:
    case PIPE_CAP_TEXTURE_MULTISAMPLE:
-   case PIPE_CAP_MIN_MAP_BUFFER_ALIGNMENT:
    case PIPE_CAP_TEXTURE_BORDER_COLOR_QUIRK:
    case PIPE_CAP_CUBE_MAP_ARRAY:
    case PIPE_CAP_TEXTURE_BUFFER_OBJECTS:
@@ -227,6 +226,9 @@ i915_get_param(struct pipe_screen *screen, enum pipe_cap cap)
    case PIPE_CAP_TGSI_VS_LAYER:
       return 0;
 
+   case PIPE_CAP_MIN_MAP_BUFFER_ALIGNMENT:
+      return 64;
+
    case PIPE_CAP_GLSL_FEATURE_LEVEL:
       return 120;