nvc0: re-validate images after launching a grid on Fermi

Graphics / Mesa 3D Graphics Library / Mesa - Samuel Pitoiset [gmail.com] - 5 June 2016 11:48 UTC

Images invalidation is a bit weird on Fermi and there is already a hack which forces invalidating all images when launching a computer shader to help in fixing 3D<->CP interaction.

However, we need to re-validate images for compute because nvc0_compute_invalidate_surfaces() will destroy the previous binding. This is not really good for performance purposes but this might be improved later.

This fixes the following piglits:- spec/arb_compute_shader/execution/basic-uniform-access- spec/arb_compute_shader/execution/mutiple-texture-reading- spec/arb_compute_shader/execution/multiple-workgroups- spec/glsl-4.30/execution/built-in-functions/cs-* (207 tests)

43d3ecf nvc0: re-validate images after launching a grid on Fermi
src/gallium/drivers/nouveau/nvc0/nvc0_compute.c | 3 +++
1 file changed, 3 insertions(+)

Upstream: cgit.freedesktop.org


  • Share