OSDN Git Service

Revert "r300g: handle DISCARD_WHOLE_RESOURCE for buffers"
authorMarek Olšák <maraeo@gmail.com>
Fri, 8 Apr 2011 21:19:53 +0000 (23:19 +0200)
committerMarek Olšák <maraeo@gmail.com>
Fri, 8 Apr 2011 21:20:00 +0000 (23:20 +0200)
commitee678895e903f3ecbbd95b4584dbfbb127f9d4f0
tree4f1bd593b863f85838ae253f6b8eced058ea58e6
parent69c71396c6e947cbdf878bacb655d472a11c7708
Revert "r300g: handle DISCARD_WHOLE_RESOURCE for buffers"

This reverts commit 437c748bf5072d2bded77a00c74c51cdb8b510e5.

The commit is wrong for several reasons. One of them is when we grab
a new buffer, we should update all the states it is bound in,
including all parallel contexts. I don't think this is even doable.

The correct solution would be upload data via a temporary buffer and
do resource_copy_region to the original one.

https://bugs.freedesktop.org/show_bug.cgi?id=36088
src/gallium/drivers/r300/r300_screen_buffer.c