softpipe: enable GL_ARB_viewport_array support, update GL3.txt doc
authorEdward O'Callaghan <eocallaghan@alterapraxis.com>
Fri, 11 Dec 2015 11:43:31 +0000 (22:43 +1100)
committerRoland Scheidegger <sroland@vmware.com>
Fri, 11 Dec 2015 19:09:21 +0000 (20:09 +0100)
Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
docs/GL3.txt
src/gallium/drivers/softpipe/sp_screen.c

index 7eda0028997797d91b75056083da6a442600a98f..84b5a172d586d50eae4505139fe7627e97a67eea 100644 (file)
@@ -128,7 +128,7 @@ GL 4.1, GLSL 4.10 --- all DONE: nvc0, r600, radeonsi
   GL_ARB_separate_shader_objects                       DONE (all drivers)
   GL_ARB_shader_precision                              DONE (all drivers that support GLSL 4.10)
   GL_ARB_vertex_attrib_64bit                           DONE (llvmpipe, softpipe)
-  GL_ARB_viewport_array                                DONE (i965, nv50, llvmpipe)
+  GL_ARB_viewport_array                                DONE (i965, nv50, llvmpipe, softpipe)
 
 
 GL 4.2, GLSL 4.20:
index 2ae72b2332b16ce2778d018e01632b0a8952b7da..9939720e259d776687ebd9a3018783a85be2114e 100644 (file)
@@ -187,7 +187,7 @@ softpipe_get_param(struct pipe_screen *screen, enum pipe_cap param)
    case PIPE_CAP_PREFER_BLIT_BASED_TEXTURE_TRANSFER:
       return 0;
    case PIPE_CAP_MAX_VIEWPORTS:
-      return 1;
+      return PIPE_MAX_VIEWPORTS;
    case PIPE_CAP_ENDIANNESS:
       return PIPE_ENDIAN_NATIVE;
    case PIPE_CAP_MAX_TEXTURE_GATHER_COMPONENTS: