diff options
author | Eric Anholt <eric@anholt.net> | 2010-04-28 17:17:54 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-04-29 08:34:15 -0700 |
commit | 7d8f0fc28239c8023d2d44cbd4c979aa86c31873 (patch) | |
tree | dc787901d42b5deff7dbadf690f2f87a5cba6b42 /src/mesa/drivers/dri/intel/intel_tex_layout.h | |
parent | d05c35914df1c382b90def7e7425d7f2fa4737dc (diff) |
i965: Fix cube map layouts on Ironlake.
We were doubling up the offsets for the mipmap levels for CPU access.
Instead of reimplementing i945_miptree_layout_2d with 6 cube images
separated by qpitch, share that function and provide the level offsets
later.
Fixes piglit cubemap and fbo-cubemap.
Diffstat (limited to 'src/mesa/drivers/dri/intel/intel_tex_layout.h')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_tex_layout.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_tex_layout.h b/src/mesa/drivers/dri/intel/intel_tex_layout.h index a9ac9e7eb4..1c8c53e545 100644 --- a/src/mesa/drivers/dri/intel/intel_tex_layout.h +++ b/src/mesa/drivers/dri/intel/intel_tex_layout.h @@ -40,5 +40,5 @@ static INLINE GLuint minify( GLuint d ) extern void i945_miptree_layout_2d(struct intel_context *intel, struct intel_mipmap_tree *mt, - uint32_t tiling); + uint32_t tiling, int nr_images); extern void intel_get_texture_alignment_unit(GLenum, GLuint *, GLuint *); |