gallium: geometry shader can be always enabled and we don't need a cap for that
authorZack Rusin <zackr@vmware.com>
Thu, 24 Dec 2009 14:30:00 +0000 (09:30 -0500)
committerZack Rusin <zackr@vmware.com>
Fri, 25 Dec 2009 10:52:20 +0000 (05:52 -0500)
using the draw module allows us to enable geometry shading even on hardware
that doesn't support it.

src/gallium/drivers/softpipe/sp_screen.c
src/gallium/include/pipe/p_defines.h

index a32312d29b91b5d03487c9ee4b57b6fc2772d835..bd3532de4f445f1b90ad4581c5a3c11619e5714a 100644 (file)
@@ -89,8 +89,6 @@ softpipe_get_param(struct pipe_screen *screen, int param)
       return 13; /* max 4Kx4K */
    case PIPE_CAP_TGSI_CONT_SUPPORTED:
       return 1;
-   case PIPE_CAP_GEOMETRY_SHADER4:
-      return 1;
    case PIPE_CAP_BLEND_EQUATION_SEPARATE:
       return 1;
    default:
index 90fc3331d1ca48a4e48723fc1d5bda370f5d1791..2cda408fecc877a6a48db218db0f9f38064c14a8 100644 (file)
@@ -398,7 +398,6 @@ enum pipe_transfer_usage {
 #define PIPE_CAP_MAX_PREDICATE_REGISTERS 30
 #define PIPE_CAP_MAX_COMBINED_SAMPLERS   31  /*< Maximum texture image units accessible from vertex
                                                  and fragment shaders combined */
-#define PIPE_CAP_GEOMETRY_SHADER4        32
 
 
 /**