softpipe: fix texture view crashes
authorDave Airlie <airlied@redhat.com>
Wed, 20 Mar 2019 03:11:40 +0000 (13:11 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 20 Mar 2019 19:06:07 +0000 (05:06 +1000)
commit04189565a01afbecc179fb4945a80754ee6fcfb4
treea4fd90e967e6c5fc9bb8a9446062111eab0f5a41
parent3c3f250456623d9892042a6d296e77d359702add
softpipe: fix texture view crashes

I noticed we crashed piglit arb_texture_view-rendering-formats
when run on softpipe.

This fixes the clear tiles to use the surface format not the
underlying storage format.

This fixes a bunch of srgb piglits as well.

Fixes: 396ac41fc28 (softpipe: add integer support)
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/drivers/softpipe/sp_tile_cache.c