summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2013-04-22 11:07:59 -0700
committerEric Anholt <[email protected]>2013-05-06 14:33:43 -0700
commit5b190d19d326369a5c43fbdd1f19d9c8d112da40 (patch)
treeb8ab9245f0df79e44076b6a2910239113579f205 /src
parent749a92786d378ee55cf9ebbbe8596c217fbae0f9 (diff)
intel: Simplify renderbuffer-for-texture width setup.
We're looking for the logical width of our level, which is what image->Width2/Height2 is. The previous code relied on MSAA textures being only level 0. Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/intel/intel_fbo.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_fbo.c b/src/mesa/drivers/dri/intel/intel_fbo.c
index caecd3f4b03..241695f3db6 100644
--- a/src/mesa/drivers/dri/intel/intel_fbo.c
+++ b/src/mesa/drivers/dri/intel/intel_fbo.c
@@ -493,17 +493,8 @@ intel_renderbuffer_update_wrapper(struct intel_context *intel,
rb->InternalFormat = image->InternalFormat;
rb->_BaseFormat = image->_BaseFormat;
rb->NumSamples = mt->num_samples;
-
- if (mt->msaa_layout != INTEL_MSAA_LAYOUT_NONE) {
- assert(level == 0);
- rb->Width = mt->logical_width0;
- rb->Height = mt->logical_height0;
- }
- else {
- rb->Width = mt->level[level].width;
- rb->Height = mt->level[level].height;
- }
-
+ rb->Width = image->Width2;
+ rb->Height = image->Height2;
rb->Delete = intel_delete_renderbuffer;
rb->AllocStorage = intel_nop_alloc_storage;