mesa: add fallback texture for SampleMapATI if there is nothing
authorMiklós Máté <mtmkls@gmail.com>
Sat, 2 Dec 2017 22:35:17 +0000 (23:35 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 25 Dec 2017 13:32:22 +0000 (14:32 +0100)
commit178a3dfb0ebc517bef3fec37afaaa75af2fdc48d
treec7e874b661af78646311994a7eae67cbb6bc5994
parentf9cd6c502e1eea27f4a7904dfd75a6a0a23cb41b
mesa: add fallback texture for SampleMapATI if there is nothing

This fixes crash in the state tracker.

Piglit: spec/ati_fragment_shader/render-notexture

v2: fixed formatting, moved stuff inside the loop,
    moved the fallback later to fix more cases

Signed-off-by: Miklós Máté <mtmkls@gmail.com>
src/mesa/main/texstate.c