mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 22:08:26 +02:00
gallium: let the pipe drivers decide the supported modifiers
fixes:ac0219cc5b("gallium: dmabuf support for yuv formats that are not natively supported") Signed-off-by: James Xiong <james.xiong@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3527> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3527> (cherry picked from commit205ce0bea5)
This commit is contained in:
parent
06a9d51f27
commit
51f7d81dd2
2 changed files with 3 additions and 7 deletions
|
|
@ -328,7 +328,7 @@
|
|||
"description": "gallium: let the pipe drivers decide the supported modifiers",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "ac0219cc5b6afa6d0392a164b58e21ce95079930"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1395,15 +1395,11 @@ dri2_query_dma_buf_modifiers(__DRIscreen *_screen, int fourcc, int max,
|
|||
(pscreen->is_format_supported(pscreen, format, screen->target, 0, 0,
|
||||
PIPE_BIND_RENDER_TARGET) ||
|
||||
pscreen->is_format_supported(pscreen, format, screen->target, 0, 0,
|
||||
PIPE_BIND_SAMPLER_VIEW))) {
|
||||
PIPE_BIND_SAMPLER_VIEW) ||
|
||||
dri2_yuv_dma_buf_supported(screen, map))) {
|
||||
pscreen->query_dmabuf_modifiers(pscreen, format, max, modifiers,
|
||||
external_only, count);
|
||||
return true;
|
||||
} else if (dri2_yuv_dma_buf_supported(screen, map)) {
|
||||
*count = 1;
|
||||
if (modifiers)
|
||||
modifiers[0] = DRM_FORMAT_MOD_NONE;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue