mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
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:
parent
c9e66df39f
commit
0eaf7cca35
1 changed files with 1 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue