llvmpipe/softpipe: enable ARB_conditional_render_inverted
authorTobias Klausmann <tobias.johannes.klausmann@mni.thm.de>
Sun, 17 Aug 2014 15:16:08 +0000 (17:16 +0200)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 19 Aug 2014 13:02:29 +0000 (09:02 -0400)
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Signed-off-by: Tobias Klausmann <tobias.johannes.klausmann@mni.thm.de>
src/gallium/drivers/llvmpipe/lp_screen.c
src/gallium/drivers/softpipe/sp_screen.c

index 08597fa98599eb389acbfc86715175ca11537e3c..2a6e673b9e4cb634fef40df0b33b1771cdf7a58f 100644 (file)
@@ -250,10 +250,11 @@ llvmpipe_get_param(struct pipe_screen *screen, enum pipe_cap param)
    case PIPE_CAP_TEXTURE_GATHER_OFFSETS:
    case PIPE_CAP_TGSI_VS_WINDOW_SPACE_POSITION:
    case PIPE_CAP_TGSI_FS_FINE_DERIVATIVE:
-   case PIPE_CAP_CONDITIONAL_RENDER_INVERTED:
       return 0;
    case PIPE_CAP_FAKE_SW_MSAA:
       return 1;
+   case PIPE_CAP_CONDITIONAL_RENDER_INVERTED:
+      return 1;
 
    case PIPE_CAP_VENDOR_ID:
       return 0xFFFFFFFF;
index 8fd4a0da3bdd58d8941512b54c15ef950d2eb99f..d54112c4940b513624e1a94fa8b452f8d51f81be 100644 (file)
@@ -223,7 +223,7 @@ softpipe_get_param(struct pipe_screen *screen, enum pipe_cap param)
    case PIPE_CAP_UMA:
       return 0;
    case PIPE_CAP_CONDITIONAL_RENDER_INVERTED:
-      return 0;
+      return 1;
    }
    /* should only get here on unhandled cases */
    debug_printf("Unexpected PIPE_CAP %d query\n", param);