[Mesa-dev] [PATCH 10/11] intel: Drop dead preinitialization of align_w, align_h.
Eric Anholt
eric at anholt.net
Mon Jun 13 10:02:23 PDT 2011
On Fri, 10 Jun 2011 18:10:13 -0700, Ian Romanick <idr at freedesktop.org> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 06/10/2011 01:38 PM, Eric Anholt wrote:
> > ---
> > src/mesa/drivers/dri/intel/intel_tex_layout.c | 4 ++--
> > 1 files changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/src/mesa/drivers/dri/intel/intel_tex_layout.c b/src/mesa/drivers/dri/intel/intel_tex_layout.c
> > index 7493b42..2002777 100644
> > --- a/src/mesa/drivers/dri/intel/intel_tex_layout.c
> > +++ b/src/mesa/drivers/dri/intel/intel_tex_layout.c
> > @@ -57,7 +57,7 @@ void i945_miptree_layout_2d(struct intel_context *intel,
> > struct intel_mipmap_tree *mt,
> > uint32_t tiling, int nr_images)
> > {
> > - GLuint align_h = 2, align_w = 4;
> > + GLuint align_h, align_w;
> > GLuint level;
> > GLuint x = 0;
> > GLuint y = 0;
> > @@ -101,7 +101,7 @@ void i945_miptree_layout_2d(struct intel_context *intel,
> > height, 1);
> >
> > if (mt->compressed)
> > - img_height = MAX2(1, height/4);
> > + img_height = MAX2(1, height + 3/4);
>
> Is this hunk accidental or just missing from the commit message? I'm
> guessing the later.
Accidental -- the correct fix (without the obvious bug) appears in the
next commit.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20110613/bbe8a60d/attachment.pgp>
More information about the mesa-dev
mailing list