i915g: Add more PIPE_CAP_* support 09/6509/1
authorStéphane Marchesin <marcheu@chromium.org>
Sun, 11 Nov 2012 10:10:29 +0000 (02:10 -0800)
committerStéphane Marchesin <marcheu@chromium.org>
Wed, 8 May 2013 08:37:55 +0000 (01:37 -0700)
src/gallium/drivers/i915/i915_screen.c

index dfb76b3..2d0cc78 100644 (file)
@@ -215,6 +215,15 @@ i915_get_param(struct pipe_screen *screen, enum pipe_cap cap)
    case PIPE_CAP_MIN_MAP_BUFFER_ALIGNMENT:
    case PIPE_CAP_TEXTURE_BORDER_COLOR_QUIRK:
       return 0;
+   case PIPE_CAP_MAX_DUAL_SOURCE_RENDER_TARGETS:
+   case PIPE_CAP_STREAM_OUTPUT_PAUSE_RESUME:
+   case PIPE_CAP_VERTEX_BUFFER_OFFSET_4BYTE_ALIGNED_ONLY:
+   case PIPE_CAP_VERTEX_BUFFER_STRIDE_4BYTE_ALIGNED_ONLY:
+   case PIPE_CAP_VERTEX_ELEMENT_SRC_OFFSET_4BYTE_ALIGNED_ONLY:
+       return 0;
+
+   case PIPE_CAP_GLSL_FEATURE_LEVEL:
+      return 120;
 
    case PIPE_CAP_CONSTANT_BUFFER_OFFSET_ALIGNMENT:
       return 16;