st/nine: Add drirc option to use data_internal for dynamic textures
authorAxel Davy <davyaxel0@gmail.com>
Wed, 10 Apr 2019 21:09:08 +0000 (23:09 +0200)
committerAxel Davy <davyaxel0@gmail.com>
Tue, 30 Apr 2019 17:18:51 +0000 (19:18 +0200)
commitc097ff36174d77df9b641be392c5f15d4ab930fd
tree1d21a435453f77d137634ac83804d7bb8a8d9d2f
parent7dcc85b46e2253c1efd425e55749e1714a260a21
st/nine: Add drirc option to use data_internal for dynamic textures

dynamic textures seem to have predictable stride. This stride
should be the same as for a ram buffer.

It seems some game don't check the actual stride value, assuming
it to be the expected one.
Thus this workaround (protected by drirc option) is to use an intermediate
ram buffer.

Fixes Rayman Legends texture issues when enabled.

Signed-off-by: Axel Davy <davyaxel0@gmail.com>
src/gallium/state_trackers/nine/adapter9.h
src/gallium/state_trackers/nine/device9.c
src/gallium/state_trackers/nine/device9.h
src/gallium/state_trackers/nine/surface9.c
src/gallium/state_trackers/nine/volume9.c
src/gallium/targets/d3dadapter9/drm.c
src/util/xmlpool/t_options.h