r600g,radeonsi: don't append to streamout buffers that haven't been used yet
authorMarek Olšák <marek.olsak@amd.com>
Sun, 1 Feb 2015 12:47:01 +0000 (13:47 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 4 Feb 2015 13:34:13 +0000 (14:34 +0100)
commit658f1d4cfeeea84268715c07f871721df8f1b729
tree27e7471b67267b2c073d3dfb322ea86a35d80d83
parentb616429ca8ed99f3f891b7b5b362d757856bc5a7
r600g,radeonsi: don't append to streamout buffers that haven't been used yet

The FILLED_SIZE counter is uninitialized at the beginning, so we can't use it.
Instead, use offset = 0, which is what we always do when not appending.

This unexpectedly fixes spec/ARB_texture_multisample/sample-position/*.
Yes, the test does use transform feedback.

Cc: 10.3 10.4 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Glenn Kennard <glenn.kennard@gmail.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeon/r600_pipe_common.h
src/gallium/drivers/radeon/r600_streamout.c