OSDN Git Service

vc4: Add support for swizzles of 32 bit float vertex attributes.
authorEric Anholt <eric@anholt.net>
Fri, 1 Aug 2014 19:50:53 +0000 (12:50 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 9 Aug 2014 01:59:47 +0000 (18:59 -0700)
commit88bc5baa00c632c2411304b2c7e5cc49f882c30e
treecc0aa57ffc9464b96d54049b759cab579f19ee01
parentf069367f3938741c07658f54390c16550e1b5a5c
vc4: Add support for swizzles of 32 bit float vertex attributes.

Some tests start working (useprogram-flushverts, for example) due to
getitng the right vertices now.  Some that used to pass start failing with
memory overflow during binning, which is weird (glsl-fs-texture2drect).
And a couple stop rendering correctly (glsl-fs-bug25902).

v2: Move the attribute format setup in the key from after search time to
    before the search.
v3: Fix reading of attributes other than position (I forgot to respect
    attr and stored everything in inputs 0-3, i.e. position).
src/gallium/drivers/vc4/vc4_draw.c
src/gallium/drivers/vc4/vc4_program.c