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 a32312d..bd3532d 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 90fc333..2cda408 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
 
 
 /**