OSDN Git Service

nvc0: respect edgeflag attribute width
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 23 Oct 2015 06:14:31 +0000 (02:14 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 23 Oct 2015 20:43:06 +0000 (16:43 -0400)
commite05021ff72abb7de6506c90dd70a9f7ab490bf90
tree4cd27dcbcc36961ba9e396b03e3063f4d3418963
parentea421e919ae6e72e1319fb205c42a6fb53ca2f82
nvc0: respect edgeflag attribute width

The edgeflag comes in as ubyte with glEdgeFlagPointer but as float with
plain immediate glEdgeFlag. Avoid reading bytes that weren't meant for
the edgeflag in the pointer case.

Fixes intermittent failures with gl-2.0-edgeflag piglit (and valgrind
complaints about reading uninitialized memory).

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: mesa-stable@lists.freedesktop.org
src/gallium/drivers/nouveau/nvc0/nvc0_vbo_translate.c