mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-09 14:50:11 +01:00
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 <kenneth@whitecape.org> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
This commit is contained in:
parent
6be024f44d
commit
4fe15717ce
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue