softpipe: add textureOffset support.
authorDave Airlie <airlied@redhat.com>
Tue, 19 May 2015 06:12:45 +0000 (16:12 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 20 May 2015 02:32:47 +0000 (12:32 +1000)
commit3f5c67d6510fe0210079ddecc0d30227a6cc4111
treeedfd11357abd675ce4a61669b6cdb83730d9e1eb
parent8bec83a30761d52088fa5cd2301b469b7aacf755
softpipe: add textureOffset support.

This was an oversight when GLSL1.30 was enabled, I think my
misunderstanding.

This fixes a bunch of tex-miplevel-selection tests under softpipe,
and is required for textureGather support.

I'm not sure this won't make sampling slowering, but its softpipe,
correctness first and all that.

Reviewed-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/softpipe/sp_tex_sample.c
src/gallium/drivers/softpipe/sp_tex_sample.h