radeonsi: initialise imported surface to 0.
authorDave Airlie <airlied@redhat.com>
Mon, 14 Aug 2017 06:01:54 +0000 (07:01 +0100)
committerDave Airlie <airlied@redhat.com>
Tue, 15 Aug 2017 00:35:58 +0000 (01:35 +0100)
commite0edfadec81516186b3bf64bcca48f5a7683dee2
tree87341fa2c2897ad3148a6b3b14bc7ffc3fdc00ad
parentde0e62e1065e2d9172acf3ab7c70bba0160125c8
radeonsi: initialise imported surface to 0.

For memobj imports we weren't setting the surface to 0, which
meant sometimes we'd end up with tile_swizzle garbage, which
would corrupt rendering.

This seems to fix the image corruption on the imported memory
objects in vrdashboard for me.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/radeon/r600_texture.c