[Mesa-dev] [PATCH] glsl_to_tgsi: make sure copied instructions don't lose texture target.
airlied at gmail.com
Sat Dec 10 11:33:39 PST 2011
On Sat, Dec 10, 2011 at 6:34 PM, Dave Airlie <airlied at gmail.com> wrote:
> From: Dave Airlie <airlied at redhat.com>
> The piglit draw-pixel-with-texture was asserting in the glsl->tgsi code,
> due to 0 texture target, this makes sure the texture target is copied over
> correctly when we copy instructions around.
Oh so it looks like this could be "fun" or maybe the other one, so
glsl->tgsi is broken for draw pixels where a texturing is enabled.
The problem is we ignore the fact that texturing is enabled and we
blindly write over the original programs texture info, we also seem to
bind our samplers on top of the original states which also seems
doomed to failure.
I'm not 100% sure how best to solve this, I'll just tool around until
I have an answer unless someone comes up with a better one.
More information about the mesa-dev