diff options
author | Brian Paul <[email protected]> | 2011-10-11 09:30:09 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-10-11 09:30:09 -0600 |
commit | 94b219b9e2c20711078b1628cf1fa599a29bf67f (patch) | |
tree | bd630eb8b166e3043152a65d0d49595bffb0ac33 /src/gallium/drivers/svga/svga_tgsi.c | |
parent | 396ac41fc285f0d7c8545f2b32ba373693a7a326 (diff) |
svga: remove support for shader model 2.0
We've been requiring SM 3.0 all along so this just removes unused code.
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/svga_tgsi.c')
-rw-r--r-- | src/gallium/drivers/svga/svga_tgsi.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/gallium/drivers/svga/svga_tgsi.c b/src/gallium/drivers/svga/svga_tgsi.c index a93eca686dd..90a84230c98 100644 --- a/src/gallium/drivers/svga/svga_tgsi.c +++ b/src/gallium/drivers/svga/svga_tgsi.c @@ -136,8 +136,6 @@ boolean svga_shader_emit_opcode( struct svga_shader_emitter *emit, return TRUE; } -#define SVGA3D_PS_2X (SVGA3D_PS_20 | 1) -#define SVGA3D_VS_2X (SVGA3D_VS_20 | 1) static boolean svga_shader_emit_header( struct svga_shader_emitter *emit ) { @@ -147,10 +145,10 @@ static boolean svga_shader_emit_header( struct svga_shader_emitter *emit ) switch (emit->unit) { case PIPE_SHADER_FRAGMENT: - header.value = emit->use_sm30 ? SVGA3D_PS_30 : SVGA3D_PS_2X; + header.value = SVGA3D_PS_30; break; case PIPE_SHADER_VERTEX: - header.value = emit->use_sm30 ? SVGA3D_VS_30 : SVGA3D_VS_2X; + header.value = SVGA3D_VS_30; break; } @@ -178,7 +176,6 @@ svga_tgsi_translate( const struct svga_shader *shader, memset(&emit, 0, sizeof(emit)); - emit.use_sm30 = shader->use_sm30; emit.size = 1024; emit.buf = MALLOC(emit.size); if (emit.buf == NULL) { |