From 2dd4e2348f3c05cd11cd6573fbbaeea7ab898692 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 16 Jun 2017 11:35:32 -0700 Subject: i965/miptree: Add a colorspace parameter to create_for_dri_image The __DRI_FORMAT enums are all UNORM but we will frequently want sRGB when creating miptrees for renderbuffers. This lets us specify. Reviewed-by: Chad Versace --- src/mesa/drivers/dri/i965/intel_fbo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mesa/drivers/dri/i965/intel_fbo.c') diff --git a/src/mesa/drivers/dri/i965/intel_fbo.c b/src/mesa/drivers/dri/i965/intel_fbo.c index 4003e288250..3670c2a0b7f 100644 --- a/src/mesa/drivers/dri/i965/intel_fbo.c +++ b/src/mesa/drivers/dri/i965/intel_fbo.c @@ -362,7 +362,8 @@ intel_image_target_renderbuffer_storage(struct gl_context *ctx, * buffer's content to the main buffer nor for invalidating the aux buffer's * content. */ - irb->mt = intel_miptree_create_for_dri_image(brw, image, GL_TEXTURE_2D); + irb->mt = intel_miptree_create_for_dri_image(brw, image, GL_TEXTURE_2D, + ISL_COLORSPACE_NONE); if (!irb->mt) return; -- cgit v1.2.3