Mesa (master): i965: Make BLORP do sRGB encode/decode on ES 2 as well.
Kenneth Graunke
kwg at kemper.freedesktop.org
Mon Aug 8 21:12:22 UTC 2016
Module: Mesa
Branch: master
Commit: 352401f6a9e50021e06459017de72c695ae684c2
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=352401f6a9e50021e06459017de72c695ae684c2
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Tue Aug 2 23:48:47 2016 -0700
i965: Make BLORP do sRGB encode/decode on ES 2 as well.
This should have no effect, as all drivers which support BLORP also
support ES 3.0 - so ES 2.0 would be promoted and follow the ES 3 rules.
ES 1.0 doesn't have BlitFramebuffer.
This is purely to clarify the next patch a bit.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
---
src/mesa/drivers/dri/i965/brw_blorp_blit.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_blorp_blit.cpp b/src/mesa/drivers/dri/i965/brw_blorp_blit.cpp
index 7532aac..20bbe7f 100644
--- a/src/mesa/drivers/dri/i965/brw_blorp_blit.cpp
+++ b/src/mesa/drivers/dri/i965/brw_blorp_blit.cpp
@@ -65,7 +65,7 @@ do_blorp_blit(struct brw_context *brw, GLbitfield buffer_bit,
struct intel_mipmap_tree *src_mt = find_miptree(buffer_bit, src_irb);
struct intel_mipmap_tree *dst_mt = find_miptree(buffer_bit, dst_irb);
- const bool es3 = _mesa_is_gles3(&brw->ctx);
+ const bool es = _mesa_is_gles(&brw->ctx);
/* Do the blit */
brw_blorp_blit_miptrees(brw,
src_mt, src_irb->mt_level, src_irb->mt_layer,
@@ -75,7 +75,7 @@ do_blorp_blit(struct brw_context *brw, GLbitfield buffer_bit,
srcX0, srcY0, srcX1, srcY1,
dstX0, dstY0, dstX1, dstY1,
filter, mirror_x, mirror_y,
- es3, es3);
+ es, es);
dst_irb->need_downsample = true;
}
More information about the mesa-commit
mailing list