gallium/radeon: Only convert stencil info if RADEON_SURF_SBUFFER is set
authorMichel Dänzer <michel.daenzer@amd.com>
Wed, 2 Nov 2016 10:09:06 +0000 (19:09 +0900)
committerMichel Dänzer <michel@daenzer.net>
Fri, 4 Nov 2016 07:48:59 +0000 (16:48 +0900)
commit6f844a30c1616eac4955134ff130aad699a8079c
tree02fe11d6cc25676d7cdd10c6ef2319d7cc0ecd0d
parent38fb9aa1aa8a25443196a6fdbe21d538ba91a347
gallium/radeon: Only convert stencil info if RADEON_SURF_SBUFFER is set

Fixes valgrind warnings about using uninitialized memory when starting X.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/winsys/radeon/drm/radeon_drm_surface.c