A3xx GPUs support RG8 and RGBA8, but not R8 for rendering. Add RG8 as
fallbacks for integer formats, and require a renderable format to be
picked for all R8 variants.
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5748>
},
{
{ GL_R8I, GL_RED_INTEGER_EXT, 0},
},
{
{ GL_R8I, GL_RED_INTEGER_EXT, 0},
- { PIPE_FORMAT_R8_SINT, 0},
+ { PIPE_FORMAT_R8_SINT, PIPE_FORMAT_R8G8_SINT, 0},
- { PIPE_FORMAT_R8_UINT, 0},
+ { PIPE_FORMAT_R8_UINT, PIPE_FORMAT_R8G8_UINT, 0},
internalFormat == GL_RGB16F ||
internalFormat == GL_RGBA16F ||
internalFormat == GL_RGB32F ||
internalFormat == GL_RGB16F ||
internalFormat == GL_RGBA16F ||
internalFormat == GL_RGB32F ||
- internalFormat == GL_RGBA32F)
+ internalFormat == GL_RGBA32F ||
+ internalFormat == GL_RED ||
+ internalFormat == GL_RED_SNORM ||
+ internalFormat == GL_R8I ||
+ internalFormat == GL_R8UI)
bindings |= PIPE_BIND_RENDER_TARGET;
/* GLES allows the driver to choose any format which matches
bindings |= PIPE_BIND_RENDER_TARGET;
/* GLES allows the driver to choose any format which matches