Re: [Mesa-dev] [PATCH 1/6] i965/skl: Layout 3D textures the same as array textures

2015-02-25 Thread Neil Roberts
Ben Widawsky writes: >> + if (mt->target == GL_TEXTURE_3D) >> + depth = minify(depth, 1); >> } >> } > > assert(brw->gen >= 9)? (up to you, I'm very assert happy) Yes, that seems like a good idea. >> >> @@ -263,7 +266,7 @@ brw_miptree_layout_texture_array(struct brw_context *

Re: [Mesa-dev] [PATCH 1/6] i965/skl: Layout 3D textures the same as array textures

2015-02-24 Thread Ben Widawsky
On Fri, Feb 20, 2015 at 10:31:03PM +, Neil Roberts wrote: > On Gen9+ the 3D textures use the same mipmap layout as 2D array > textures. > --- > src/mesa/drivers/dri/i965/brw_tex_layout.c | 10 -- > 1 file changed, 8 insertions(+), 2 deletions(-) > > diff --git a/src/mesa/drivers/dri/i

[Mesa-dev] [PATCH 1/6] i965/skl: Layout 3D textures the same as array textures

2015-02-20 Thread Neil Roberts
On Gen9+ the 3D textures use the same mipmap layout as 2D array textures. --- src/mesa/drivers/dri/i965/brw_tex_layout.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_tex_layout.c b/src/mesa/drivers/dri/i965/brw_tex_layout.c index 0e2