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)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 24 Aug 2016 20:26:36 +0000 (22:26 +0200)
commita227b0a4f1354f145ff49183b687dd7541a24c86
tree09348d253c6a885d4946d8af615e08507bfe408f
parentc9c989763aa7ad636407cb33c27d586e6f559d7a
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>
src/gallium/drivers/nouveau/nvc0/nvc0_tex.c
src/gallium/drivers/nouveau/nvc0/nve4_compute.c