[Mesa-users] need help! radeonsi si_is_format_supported yv12 buffer support
ifquant
ifquant at 163.com
Sun Apr 5 11:39:37 UTC 2020
Hi,all
i am trying support yuv12 buffer for (GFX9,GFX10, vega64,vega56,rx580)
when i modify code gralloc_drm_pipe.c and try to alloc YUV12 buffer for app.
pm->screen->is_format_supported(pm->screen, YUV12,PIPE_TEXTURE_2D) return not support,
could you give me some help or more information about radeonsi support yv12 buffer?
attachment is my app test code. it will try to pipe_alloc a yv12 buffer, and copy yv12 data to it, and swapbuffer.
but i found radeonsi (mesa drivers for amd gpu) return not support yv12 format.
the detail radeonsi code is:
input: usage = (PIPE_BIND_SHARED|PIPE_BIND_LINEAR|PIPE_BIND_SAMPLER_VIEW)
intput: format= 0x32315659 ;(PIPE_FORMAT_YV12)
static bool si_is_format_supported(struct pipe_screen *screen,
enum pipe_format format,
enum pipe_texture_target target,
unsigned sample_count,
unsigned storage_sample_count,
unsigned usage)
{
//PIPE_BIND_SAMPLER_VIEW不支持
si_is_sampler_format_supported {
if chip_class >= GFX10( vega56=GFX9,rx580=GFX8,vega64=GFX9)
gfx10_format_table.h {
/* PIPE_FORMAT_YV12 is not supported */
/* PIPE_FORMAT_YV16 is not supported */
/* PIPE_FORMAT_IYUV is not supported */
/* PIPE_FORMAT_NV12 is not supported */
/* PIPE_FORMAT_NV21 is not supported */
}
si_translate_texformat//return not support PIPE_BIND_SAMPLER_VIEW
}
//PIPE_BIND_SHARED
si_is_colorbuffer_format_supported {
si_translate_colorformat!=V_028C70_COLOR_INVALID
si_translate_colorswap!=~0U
//} return not support PIPE_BIND_SHARED
}
| |
ifquant
|
|
ifquant at 163.com
|
签名由网易邮箱大师定制
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-users/attachments/20200405/2c27282a/attachment.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Android.mk
URL: <https://lists.freedesktop.org/archives/mesa-users/attachments/20200405/2c27282a/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test.cpp
URL: <https://lists.freedesktop.org/archives/mesa-users/attachments/20200405/2c27282a/attachment-0001.ksh>
More information about the mesa-users
mailing list