diff options
author | Luca Barbieri <luca@luca-barbieri.com> | 2009-12-30 02:54:39 +0100 |
---|---|---|
committer | Francisco Jerez <currojerez@riseup.net> | 2009-12-30 14:37:19 +0100 |
commit | 9656177bc0fac5785d01900a768c2855bdc04b5a (patch) | |
tree | ea17536e44438bde6735a8e1fcc61b54a194e137 /src/glx/Makefile | |
parent | 1677d5c0aebe8edb54aa3236294acede536013f3 (diff) |
nouveau: Fix glTexSubImage on swizzled surfaces on <=NV40
Currently in nvXX_transfer_new a temporary as large as the surface is created.
If the subrectangle is not the whole texture we would need to read
back the whole texture, but we aren't.
Thus, everything but the subrectangle specified is loaded as garbage.
This can be seen in progs/demos/ray.
This patch fixes the problem by creating a temporary that covers only
the desired subrectangle.
That makes us hit an alignment assert in nv04_surface_2d.c. Fix it
using the point registers instead of manipulating the swizzled surface
offset to account for the destination coordinates (which do not seem
to have a 1024 limit).
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
Diffstat (limited to 'src/glx/Makefile')
0 files changed, 0 insertions, 0 deletions