From: Marek Olšák Date: Thu, 26 Jan 2017 01:16:18 +0000 (+0100) Subject: winsys/amdgpu: fix ADDR_REGISTER_VALUE::backendDisables X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9327780da68bf2bca8533c00bbd2ff1e91f32879;p=mesa.git winsys/amdgpu: fix ADDR_REGISTER_VALUE::backendDisables This would be a fix if the value was used anywhere. Reviewed-by: Nicolai Hähnle --- diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_surface.c b/src/gallium/winsys/amdgpu/drm/amdgpu_surface.c index 08989b5cf53..abe2b2a67af 100644 --- a/src/gallium/winsys/amdgpu/drm/amdgpu_surface.c +++ b/src/gallium/winsys/amdgpu/drm/amdgpu_surface.c @@ -111,7 +111,7 @@ ADDR_HANDLE amdgpu_addr_create(struct amdgpu_winsys *ws) regValue.gbAddrConfig = ws->amdinfo.gb_addr_cfg; regValue.noOfRanks = (ws->amdinfo.mc_arb_ramcfg & 0x4) >> 2; - regValue.backendDisables = ws->amdinfo.backend_disable[0]; + regValue.backendDisables = ws->amdinfo.enabled_rb_pipes_mask; regValue.pTileConfig = ws->amdinfo.gb_tile_mode; regValue.noOfEntries = ARRAY_SIZE(ws->amdinfo.gb_tile_mode); if (ws->info.chip_class == SI) {