softpipe: Correct repeat-mirror evaluation
authorGert Wollny <gert.wollny@collabora.com>
Mon, 15 Jul 2019 11:46:53 +0000 (13:46 +0200)
committerGert Wollny <gert.wollny@collabora.com>
Thu, 18 Jul 2019 03:47:23 +0000 (05:47 +0200)
commiteae4c6df8ded2354f3f1e034ddef2177988ce688
treec61d55c9e30faa41cdfc937ef2b053d7c1bd356c
parentfff624fca42ae39322e8f82c262e1b2bb33eea79
softpipe: Correct repeat-mirror evaluation

when mirroring the texture corrdinates the indices must be mirrored as
well and the half pixel shift must be applied in reverse.

Fixes a number of tests from:
  dEQP-GLES31.functional.texture.gather.offset.*
  dEQP-GLES31.functional.texture.gather.offsets.*

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/drivers/softpipe/sp_tex_sample.c