summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/vl
diff options
context:
space:
mode:
authorChristian König <[email protected]>2011-04-02 19:50:37 +0200
committerChristian König <[email protected]>2011-04-02 19:50:37 +0200
commit71ee815b5cb0612906f9400f9a06ce8b7cdd51b3 (patch)
treeb288fce5ca749f54b9cd44fed3f21e44966531df /src/gallium/auxiliary/vl
parent794cde3f5ef59cf603be284fbc8de33d2cda7d2c (diff)
[g3dvl] remove PIPE_CAP_DECODE_TARGET_PREFERRED_FORMAT
It wasn't fully implemented anyway.
Diffstat (limited to 'src/gallium/auxiliary/vl')
-rw-r--r--src/gallium/auxiliary/vl/vl_mpeg12_context.c20
-rw-r--r--src/gallium/auxiliary/vl/vl_mpeg12_context.h4
2 files changed, 7 insertions, 17 deletions
diff --git a/src/gallium/auxiliary/vl/vl_mpeg12_context.c b/src/gallium/auxiliary/vl/vl_mpeg12_context.c
index 9f3da7381ba..8ea6fd08449 100644
--- a/src/gallium/auxiliary/vl/vl_mpeg12_context.c
+++ b/src/gallium/auxiliary/vl/vl_mpeg12_context.c
@@ -256,17 +256,11 @@ vl_mpeg12_get_param(struct pipe_video_context *vpipe, int param)
assert(vpipe);
- switch (param) {
- case PIPE_CAP_NPOT_TEXTURES:
- return !ctx->pot_buffers;
- case PIPE_CAP_DECODE_TARGET_PREFERRED_FORMAT:
- return ctx->decode_format;
- default:
- {
- debug_printf("vl_mpeg12_context: Unknown PIPE_CAP %d\n", param);
- return 0;
- }
- }
+ if (param == PIPE_CAP_NPOT_TEXTURES)
+ return !ctx->pot_buffers;
+
+ debug_printf("vl_mpeg12_context: Unknown PIPE_CAP %d\n", param);
+ return 0;
}
static struct pipe_surface *
@@ -654,8 +648,7 @@ vl_create_mpeg12_context(struct pipe_context *pipe,
enum pipe_video_profile profile,
enum pipe_video_chroma_format chroma_format,
unsigned width, unsigned height,
- bool pot_buffers,
- enum pipe_format decode_format)
+ bool pot_buffers)
{
struct vl_mpeg12_context *ctx;
@@ -686,7 +679,6 @@ vl_create_mpeg12_context(struct pipe_context *pipe,
ctx->base.set_csc_matrix = vl_mpeg12_set_csc_matrix;
ctx->pipe = pipe;
- ctx->decode_format = decode_format;
ctx->pot_buffers = pot_buffers;
ctx->quads = vl_vb_upload_quads(ctx->pipe, 2, 2);
diff --git a/src/gallium/auxiliary/vl/vl_mpeg12_context.h b/src/gallium/auxiliary/vl/vl_mpeg12_context.h
index e0c6ca94c45..3cc052941b2 100644
--- a/src/gallium/auxiliary/vl/vl_mpeg12_context.h
+++ b/src/gallium/auxiliary/vl/vl_mpeg12_context.h
@@ -41,7 +41,6 @@ struct vl_mpeg12_context
{
struct pipe_video_context base;
struct pipe_context *pipe;
- enum pipe_format decode_format;
bool pot_buffers;
unsigned buffer_width, buffer_height;
@@ -89,7 +88,6 @@ vl_create_mpeg12_context(struct pipe_context *pipe,
enum pipe_video_profile profile,
enum pipe_video_chroma_format chroma_format,
unsigned width, unsigned height,
- bool pot_buffers,
- enum pipe_format decode_format);
+ bool pot_buffers);
#endif /* VL_MPEG12_CONTEXT_H */