summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorChristian König <[email protected]>2011-04-10 20:34:21 +0200
committerChristian König <[email protected]>2011-04-10 20:34:21 +0200
commitb6af6ba6c0e62fc91adb350d882bab69dde1ef7a (patch)
treec94449bb547a4050b63b5f9f674c573c7e0c6549 /src/gallium
parentad4ed0e7f642a536618be183b293286fff1b206b (diff)
[g3dvl] remove unused rasterizer state from mpeg decoder
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/vl/vl_mpeg12_decoder.c34
-rw-r--r--src/gallium/auxiliary/vl/vl_mpeg12_decoder.h1
2 files changed, 0 insertions, 35 deletions
diff --git a/src/gallium/auxiliary/vl/vl_mpeg12_decoder.c b/src/gallium/auxiliary/vl/vl_mpeg12_decoder.c
index 0be56f83372..ce5d5099106 100644
--- a/src/gallium/auxiliary/vl/vl_mpeg12_decoder.c
+++ b/src/gallium/auxiliary/vl/vl_mpeg12_decoder.c
@@ -248,7 +248,6 @@ vl_mpeg12_destroy(struct pipe_video_decoder *decoder)
dec->pipe->bind_fs_state(dec->pipe, NULL);
dec->pipe->delete_blend_state(dec->pipe, dec->blend);
- dec->pipe->delete_rasterizer_state(dec->pipe, dec->rast);
dec->pipe->delete_depth_stencil_alpha_state(dec->pipe, dec->dsa);
vl_mpeg12_mc_renderer_cleanup(&dec->mc);
@@ -486,45 +485,12 @@ vl_mpeg12_decoder_clear_buffer(struct pipe_video_decode_buffer *buffer)
static bool
init_pipe_state(struct vl_mpeg12_decoder *dec)
{
- struct pipe_rasterizer_state rast;
struct pipe_blend_state blend;
struct pipe_depth_stencil_alpha_state dsa;
unsigned i;
assert(dec);
- memset(&rast, 0, sizeof rast);
- rast.flatshade = 1;
- rast.flatshade_first = 0;
- rast.light_twoside = 0;
- rast.front_ccw = 1;
- rast.cull_face = PIPE_FACE_NONE;
- rast.fill_back = PIPE_POLYGON_MODE_FILL;
- rast.fill_front = PIPE_POLYGON_MODE_FILL;
- rast.offset_point = 0;
- rast.offset_line = 0;
- rast.scissor = 0;
- rast.poly_smooth = 0;
- rast.poly_stipple_enable = 0;
- rast.sprite_coord_enable = 0;
- rast.point_size_per_vertex = 0;
- rast.multisample = 0;
- rast.line_smooth = 0;
- rast.line_stipple_enable = 0;
- rast.line_stipple_factor = 0;
- rast.line_stipple_pattern = 0;
- rast.line_last_pixel = 0;
- rast.line_width = 1;
- rast.point_smooth = 0;
- rast.point_quad_rasterization = 0;
- rast.point_size_per_vertex = 1;
- rast.offset_units = 1;
- rast.offset_scale = 1;
- rast.gl_rasterization_rules = 1;
-
- dec->rast = dec->pipe->create_rasterizer_state(dec->pipe, &rast);
- dec->pipe->bind_rasterizer_state(dec->pipe, dec->rast);
-
memset(&blend, 0, sizeof blend);
blend.independent_blend_enable = 0;
diff --git a/src/gallium/auxiliary/vl/vl_mpeg12_decoder.h b/src/gallium/auxiliary/vl/vl_mpeg12_decoder.h
index 8f8c84e365c..6cc895b9051 100644
--- a/src/gallium/auxiliary/vl/vl_mpeg12_decoder.h
+++ b/src/gallium/auxiliary/vl/vl_mpeg12_decoder.h
@@ -53,7 +53,6 @@ struct vl_mpeg12_decoder
struct vl_idct idct_y, idct_c;
struct vl_mpeg12_mc_renderer mc;
- void *rast;
void *dsa;
void *blend;
};