mesa: prefer read-format of RG for snorm
There's no good reason we want to read RGBA for SNORM RB textures. Let's correct the preferred read-format here. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28120>
This commit is contained in:
committed by
Marge Bot
parent
c9e66df39f
commit
0eaf7cca35
@@ -905,6 +905,7 @@ _mesa_get_color_read_format(struct gl_context *ctx,
|
||||
return GL_RGB;
|
||||
case MESA_FORMAT_RG_FLOAT32:
|
||||
case MESA_FORMAT_RG_FLOAT16:
|
||||
case MESA_FORMAT_RG_SNORM8:
|
||||
case MESA_FORMAT_RG_UNORM8:
|
||||
return GL_RG;
|
||||
case MESA_FORMAT_RG_SINT32:
|
||||
|
||||
Reference in New Issue
Block a user