OSDN Git Service

nvc0: invalidate textures/samplers on GK104+
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 24 Aug 2016 18:22:52 +0000 (20:22 +0200)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 1 Sep 2016 10:39:45 +0000 (11:39 +0100)
commit9fced1aa53826da26d0fa35edb456f3ec4c0ad36
tree7a2929ea4def37b6250f0c9ab9158b3c3582f194
parent5ad09f744c283267eeb9a05f9c2740201a94f6c7
nvc0: invalidate textures/samplers on GK104+

Like Fermi, textures and samplers are aliased between 3D and compute,
especially the TIC_FLUSH/TSC_FLUSH methods and we have to re-validate
these resources when switching between the two pipelines.

This fixes a GPU hang with Elemental (and most likely with other UE4 demos).

Tested on GK107 and GM107.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
CC: <mesa-stable@lists.freedesktop.org>
(cherry picked from commit a227b0a4f1354f145ff49183b687dd7541a24c86)
src/gallium/drivers/nouveau/nvc0/nvc0_tex.c
src/gallium/drivers/nouveau/nvc0/nve4_compute.c