summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2015-06-25 10:08:06 -0700
committerKenneth Graunke <[email protected]>2015-07-10 19:14:41 -0700
commit4fe15717ce2fc0b1c239d3d7bf9a7bb04fb50dd5 (patch)
tree68501a8afdb37f22efa6a9c34fa96e1259a6569c /src
parent6be024f44dea7df6608e5a3111deffc61dbf6d6d (diff)
i965: Remove special case for layered drawbuffer attachments.
When binding a layered texture, the layer is already 0. There's no need to special case this. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Anuj Phogat <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/gen6_surface_state.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/gen6_surface_state.c b/src/mesa/drivers/dri/i965/gen6_surface_state.c
index 03e913a0a76..39de62f2304 100644
--- a/src/mesa/drivers/dri/i965/gen6_surface_state.c
+++ b/src/mesa/drivers/dri/i965/gen6_surface_state.c
@@ -88,7 +88,8 @@ gen6_update_renderbuffer_surface(struct brw_context *brw,
break;
}
- const int min_array_element = layered ? 0 : irb->mt_layer;
+ const int min_array_element = irb->mt_layer;
+ assert(!layered || irb->mt_layer == 0);
surf[0] = SET_FIELD(surftype, BRW_SURFACE_TYPE) |
SET_FIELD(format, BRW_SURFACE_FORMAT);