mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 04:20:08 +01:00
svga: fix regression related to srgb
This regression is caused because of commit 3190c7ee97
Regression caused by following OpenGL 4.4 spec rules relates to
GL_FRAMEBUFFER_SRGB in Mesa.
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
This commit is contained in:
parent
3b7341d547
commit
10f6e08549
1 changed files with 12 additions and 0 deletions
|
|
@ -322,6 +322,18 @@ svga_blit(struct pipe_context *pipe,
|
|||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* When there is blit from srgb to linear format or vice versa, we change
|
||||
* src.format to srgb or linear, respectively
|
||||
*/
|
||||
|
||||
if (util_format_is_srgb(blit.dst.format)) {
|
||||
blit.src.format = util_format_srgb(blit.src.format);
|
||||
}
|
||||
else {
|
||||
blit.src.format = util_format_linear(blit.src.format);
|
||||
}
|
||||
|
||||
/* XXX turn off occlusion and streamout queries */
|
||||
|
||||
util_blitter_save_vertex_buffer_slot(svga->blitter, svga->curr.vb);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue