diff options
author | Brian Paul <brianp@vmware.com> | 2012-01-16 12:29:11 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2012-01-24 14:12:29 -0700 |
commit | 924de7dc96f4607cb3d833637b5f69f4b9e2a6d0 (patch) | |
tree | 53afefa94c5e03a2ceaf7544ef7f13cc28f4bb33 /src/mesa/drivers/dri/intel/intel_tex_copy.c | |
parent | 1048d55d5fa60d17dd99ac7394ff0572500625f9 (diff) |
intel: use intel_rb_format() to get renderbuffer format
This will make future changes cleaner and less invasive.
Diffstat (limited to 'src/mesa/drivers/dri/intel/intel_tex_copy.c')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_tex_copy.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_tex_copy.c b/src/mesa/drivers/dri/intel/intel_tex_copy.c index b6e29f78de6..8617302856d 100644 --- a/src/mesa/drivers/dri/intel/intel_tex_copy.c +++ b/src/mesa/drivers/dri/intel/intel_tex_copy.c @@ -69,16 +69,16 @@ intel_copy_texsubimage(struct intel_context *intel, assert(region); } - copy_supported = intelImage->base.Base.TexFormat == irb->Base.Format; + copy_supported = intelImage->base.Base.TexFormat == intel_rb_format(irb); /* Converting ARGB8888 to XRGB8888 is trivial: ignore the alpha bits */ - if (irb->Base.Format == MESA_FORMAT_ARGB8888 && + if (intel_rb_format(irb) == MESA_FORMAT_ARGB8888 && intelImage->base.Base.TexFormat == MESA_FORMAT_XRGB8888) { copy_supported = true; } /* Converting XRGB8888 to ARGB8888 requires setting the alpha bits to 1.0 */ - if (irb->Base.Format == MESA_FORMAT_XRGB8888 && + if (intel_rb_format(irb) == MESA_FORMAT_XRGB8888 && intelImage->base.Base.TexFormat == MESA_FORMAT_ARGB8888) { copy_supported_with_alpha_override = true; } @@ -88,7 +88,7 @@ intel_copy_texsubimage(struct intel_context *intel, fprintf(stderr, "%s mismatched formats %s, %s\n", __FUNCTION__, _mesa_get_format_name(intelImage->base.Base.TexFormat), - _mesa_get_format_name(irb->Base.Format)); + _mesa_get_format_name(intel_rb_format(irb))); return false; } |