radeonsi: Don't modify PA_SC_RASTER_CONFIG register value if rb_mask == 0
authorMichel Dänzer <michel.daenzer@amd.com>
Tue, 9 Dec 2014 08:00:32 +0000 (17:00 +0900)
committerMichel Dänzer <michel@daenzer.net>
Thu, 25 Dec 2014 03:06:22 +0000 (12:06 +0900)
commitb3057f8097f88d9072df6d9c09bcc8c039b88a7c
tree33638176cd21d9a64aa2a03d55bda4b7d5b5b1da
parent229bf4475ff0a5dbeb9bc95250f7a40a983c2e28
radeonsi: Don't modify PA_SC_RASTER_CONFIG register value if rb_mask == 0

E.g. this could happen on older kernels which don't support the
RADEON_INFO_SI_BACKEND_ENABLED_MASK query yet. The code in
si_write_harvested_raster_configs() doesn't deal with this correctly and
would probably mangle the value badly.

Cc: "10.4 10.3" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
src/gallium/drivers/radeonsi/si_state.c