[Piglit] [PATCH] arb_texture_view-texsubimage-levels: correct buffer size

Bartosz Tomczyk bartosz.tomczyk86 at gmail.com
Thu Feb 2 20:16:58 UTC 2017


Please push it for me.

On Thu, Feb 2, 2017 at 8:51 PM, Anuj Phogat <anuj.phogat at gmail.com> wrote:

> On Tue, Jan 31, 2017 at 1:45 AM, Bartosz Tomczyk
> <bartosz.tomczyk86 at gmail.com> wrote:
> > ---
> >  tests/spec/arb_texture_view/texsubimage-levels.c | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/tests/spec/arb_texture_view/texsubimage-levels.c
> b/tests/spec/arb_texture_view/texsubimage-levels.c
> > index 20d956fa2..7bbaf7f8b 100644
> > --- a/tests/spec/arb_texture_view/texsubimage-levels.c
> > +++ b/tests/spec/arb_texture_view/texsubimage-levels.c
> > @@ -89,7 +89,7 @@ piglit_init(int argc, char **argv)
> >                 }
> >
> >                 if (use_pbo) {
> > -                       glBufferData(GL_PIXEL_UNPACK_BUFFER, TEX_SIZE *
> TEX_SIZE * 4,
> > +                       glBufferData(GL_PIXEL_UNPACK_BUFFER, dim * dim
> * 4,
> >                                      pixels, GL_STREAM_DRAW);
> >                 }
> >                 glTexSubImage2D(GL_TEXTURE_2D,
> > @@ -118,7 +118,7 @@ piglit_init(int argc, char **argv)
> >                 }
> >
> >                 if (use_pbo) {
> > -                       glBufferData(GL_PIXEL_UNPACK_BUFFER, TEX_SIZE *
> TEX_SIZE * 4,
> > +                       glBufferData(GL_PIXEL_UNPACK_BUFFER, dim * dim
> * 4,
> >                                      pixels, GL_STREAM_DRAW);
> >                 }
> >                 glTexSubImage2D(GL_TEXTURE_2D, i, 0, 0, dim, dim,
> > --
> > 2.11.0
> >
> > _______________________________________________
> > Piglit mailing list
> > Piglit at lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/piglit
>
> Reviewed-by: Anuj Phogat <anuj.phogat at gmail.com>
>
> I can push it upstream if you don't have the access.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/piglit/attachments/20170202/17e75f8d/attachment.html>


More information about the Piglit mailing list