r600: fix a compilation warning in r600_screen_create()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 30 Jan 2017 12:55:53 +0000 (13:55 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 30 Jan 2017 17:13:18 +0000 (18:13 +0100)
Should be r600_common_screen instead of r600_screen.

Fixes: 80157a2c20 ("gallium/radeon: clean up r600_query_init_backend_mask")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/r600/r600_pipe.c

index 1d9111d004b3fb3c8cc08e6957956f1f653b5f5a..e83ba32ef5a9566259271993e2b99e15f17f6b1e 100644 (file)
@@ -735,6 +735,6 @@ struct pipe_screen *r600_screen_create(struct radeon_winsys *ws)
        if (rscreen->b.debug_flags & DBG_TEST_DMA)
                r600_test_dma(&rscreen->b);
 
-       r600_query_fix_enabled_rb_mask(rscreen);
+       r600_query_fix_enabled_rb_mask(&rscreen->b);
        return &rscreen->b.b;
 }