diff options
author | Chris Forbes <[email protected]> | 2014-01-21 23:20:11 +1300 |
---|---|---|
committer | Chris Forbes <[email protected]> | 2014-04-10 18:27:41 +1200 |
commit | 85dda825fe73693f926b7fd974a1f9ad1fb7bea4 (patch) | |
tree | bce04f01ecd052bd0dde7b8a968a02320e0f577d /src/mesa/drivers/dri | |
parent | 24f490fb37f5a5b3ab0098aac6e4f6144f4f7029 (diff) |
i965: Adjust renderbuffer wrapper to account for MinLevel/MinLayer
Signed-off-by: Chris Forbes <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Acked-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_fbo.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_fbo.c b/src/mesa/drivers/dri/i965/intel_fbo.c index d0e13491cb3..98247f208b7 100644 --- a/src/mesa/drivers/dri/i965/intel_fbo.c +++ b/src/mesa/drivers/dri/i965/intel_fbo.c @@ -511,6 +511,10 @@ intel_renderbuffer_update_wrapper(struct brw_context *brw, rb->AllocStorage = intel_nop_alloc_storage; + /* adjust for texture view parameters */ + layer += image->TexObject->MinLayer; + level += image->TexObject->MinLevel; + intel_miptree_check_level_layer(mt, level, layer); irb->mt_level = level; |