mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
nv50: allow non-nv12 buffers to be created, just pass them through to vl
Since we expose non-NV12 formats as supported when there is no decoer
profile selected, make sure that those formats are actually allowed to
be allocated.
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Tested-by: Emil Velikov <emil.l.velikov@gmail.com>
Cc: "9.2" <mesa-stable@lists.freedesktop.org>
(cherry picked from commit a8346a2f52)
This commit is contained in:
parent
d72f7720a6
commit
5b8c943eb2
1 changed files with 1 additions and 5 deletions
|
|
@ -624,17 +624,13 @@ nv84_video_buffer_create(struct pipe_context *pipe,
|
|||
union nouveau_bo_config cfg;
|
||||
unsigned bo_size;
|
||||
|
||||
if (getenv("XVMC_VL"))
|
||||
if (getenv("XVMC_VL") || template->buffer_format != PIPE_FORMAT_NV12)
|
||||
return vl_video_buffer_create(pipe, template);
|
||||
|
||||
if (!template->interlaced) {
|
||||
debug_printf("Require interlaced video buffers\n");
|
||||
return NULL;
|
||||
}
|
||||
if (template->buffer_format != PIPE_FORMAT_NV12) {
|
||||
debug_printf("Must use NV12 format\n");
|
||||
return NULL;
|
||||
}
|
||||
if (template->chroma_format != PIPE_VIDEO_CHROMA_FORMAT_420) {
|
||||
debug_printf("Must use 4:2:0 format\n");
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue