i915g: we also have more than 0 viewports!
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 12 Nov 2014 01:08:22 +0000 (17:08 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 13 Nov 2014 04:59:28 +0000 (20:59 -0800)
See 546d6c8d for the corresponding fix in freedreno.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Stephane Marchesin <stephane.marchesin@gmail.com>
Cc: "10.3" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/i915/i915_screen.c

index 062f1a661cfaf148f222a106da266b07114cc10a..e9f10bce609792503c66c53ccca1b0428d906922 100644 (file)
@@ -240,6 +240,9 @@ i915_get_param(struct pipe_screen *screen, enum pipe_cap cap)
    case PIPE_CAP_SAMPLER_VIEW_TARGET:
       return 0;
 
+   case PIPE_CAP_MAX_VIEWPORTS:
+      return 1;
+
    case PIPE_CAP_MIN_MAP_BUFFER_ALIGNMENT:
       return 64;