mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 11:20:20 +01:00
st/vdpau: make query test for 2D support
The 3D check has been there since the dawn of time, but I see no reason for it, most likely a typo. When the surfaces are actually created, they use the 2D resource type (as expected). Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4108> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4108>
This commit is contained in:
parent
c1cc79739a
commit
d6368d404b
1 changed files with 2 additions and 2 deletions
|
|
@ -246,7 +246,7 @@ vlVdpOutputSurfaceQueryCapabilities(VdpDevice device, VdpRGBAFormat surface_rgba
|
|||
mtx_lock(&dev->mutex);
|
||||
*is_supported = pscreen->is_format_supported
|
||||
(
|
||||
pscreen, format, PIPE_TEXTURE_3D, 1, 1,
|
||||
pscreen, format, PIPE_TEXTURE_2D, 1, 1,
|
||||
PIPE_BIND_SAMPLER_VIEW | PIPE_BIND_RENDER_TARGET
|
||||
);
|
||||
if (*is_supported) {
|
||||
|
|
@ -446,7 +446,7 @@ vlVdpBitmapSurfaceQueryCapabilities(VdpDevice device, VdpRGBAFormat surface_rgba
|
|||
mtx_lock(&dev->mutex);
|
||||
*is_supported = pscreen->is_format_supported
|
||||
(
|
||||
pscreen, format, PIPE_TEXTURE_3D, 1, 1,
|
||||
pscreen, format, PIPE_TEXTURE_2D, 1, 1,
|
||||
PIPE_BIND_SAMPLER_VIEW | PIPE_BIND_RENDER_TARGET
|
||||
);
|
||||
if (*is_supported) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue