mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 15:48:36 +02:00
intel: fix EGLImage renderbuffer _BaseFormat
Correctly set _BaseFormat field when creating a gl_renderbuffer
with EGLImage storage.
Change-Id: I8c9f7302d18b617f54fa68304d8ffee087ed8a77
Signed-off-by: Frank Henigman <fjhenigman@google.com>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Reviewed-by: Chad Versace <chad.versace@intel.com>
(cherry picked from commit e43729943e)
Nominated-by: Chad Versace <chad.versace@intel.com>
This commit is contained in:
parent
ef1c87ba09
commit
b0400a58db
2 changed files with 2 additions and 3 deletions
|
|
@ -287,8 +287,7 @@ intel_image_target_renderbuffer_storage(struct gl_context *ctx,
|
||||||
rb->Width = image->region->width;
|
rb->Width = image->region->width;
|
||||||
rb->Height = image->region->height;
|
rb->Height = image->region->height;
|
||||||
rb->Format = image->format;
|
rb->Format = image->format;
|
||||||
rb->_BaseFormat = _mesa_base_fbo_format(&intel->ctx,
|
rb->_BaseFormat = _mesa_get_format_base_format(image->format);
|
||||||
image->internal_format);
|
|
||||||
rb->NeedsFinishRenderTexture = true;
|
rb->NeedsFinishRenderTexture = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -398,7 +398,7 @@ intel_image_target_renderbuffer_storage(struct gl_context *ctx,
|
||||||
rb->Width = image->width;
|
rb->Width = image->width;
|
||||||
rb->Height = image->height;
|
rb->Height = image->height;
|
||||||
rb->Format = image->format;
|
rb->Format = image->format;
|
||||||
rb->_BaseFormat = _mesa_base_fbo_format(ctx, image->internal_format);
|
rb->_BaseFormat = _mesa_get_format_base_format(image->format);
|
||||||
rb->NeedsFinishRenderTexture = true;
|
rb->NeedsFinishRenderTexture = true;
|
||||||
irb->layer_count = 1;
|
irb->layer_count = 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue