llvmpipe: enable PIPE_CAP_TGSI_VS_LAYER_VIEWPORT
authorRoland Scheidegger <sroland@vmware.com>
Tue, 18 Nov 2014 22:04:36 +0000 (23:04 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Wed, 19 Nov 2014 17:35:30 +0000 (18:35 +0100)
No changes required in the driver itself, all handled by draw.

piglit results in a quick run:
skip->pass 7
skip->fail 2
(The new failures in the ARB_fragment_layer_viewport group are expected,
we fail the same if gs doesn't write these outputs regardless of the vs.)

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/drivers/llvmpipe/lp_screen.c

index cec0fcbf23b2795cfded1a58df0c78c63d00e0ae..e10e83ebb1d78062549f51a1c41a58f477de9b0f 100644 (file)
@@ -245,6 +245,7 @@ llvmpipe_get_param(struct pipe_screen *screen, enum pipe_cap param)
    case PIPE_CAP_ENDIANNESS:
       return PIPE_ENDIAN_NATIVE;
    case PIPE_CAP_TGSI_VS_LAYER_VIEWPORT:
+      return 1;
    case PIPE_CAP_MAX_TEXTURE_GATHER_COMPONENTS:
    case PIPE_CAP_TEXTURE_GATHER_SM5:
    case PIPE_CAP_BUFFER_MAP_PERSISTENT_COHERENT: