r600g,radeonsi: Don't set resource_create in r600_common_screen_init()
authorTom Stellard <thomas.stellard@amd.com>
Tue, 28 Jan 2014 14:51:50 +0000 (06:51 -0800)
committerTom Stellard <thomas.stellard@amd.com>
Tue, 28 Jan 2014 15:24:11 +0000 (07:24 -0800)
r600g and radeonsi have different implementations of resource_create.

https://bugs.freedesktop.org/show_bug.cgi?id=74139

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeon/r600_pipe_common.c
src/gallium/drivers/radeonsi/si_pipe.c

index f40adf23565e01cbe2e1e80130e20445312c40b3..98164f0fb5c11c9f48f204b3afa5ee03f7cc1b3c 100644 (file)
@@ -598,7 +598,6 @@ bool r600_common_screen_init(struct r600_common_screen *rscreen,
        rscreen->b.fence_finish = r600_fence_finish;
        rscreen->b.fence_reference = r600_fence_reference;
        rscreen->b.fence_signalled = r600_fence_signalled;
-       rscreen->b.resource_create = r600_resource_create_common;
        rscreen->b.resource_destroy = u_resource_destroy_vtbl;
 
        if (rscreen->info.has_uvd) {
index 2249f79c5c5c4f7aae48d1e38d0c4781ad0a7b93..5182ec1d47855cf67e202a9a0417b008ce0f33fc 100644 (file)
@@ -413,6 +413,7 @@ struct pipe_screen *radeonsi_screen_create(struct radeon_winsys *ws)
        sscreen->b.b.get_param = si_get_param;
        sscreen->b.b.get_shader_param = si_get_shader_param;
        sscreen->b.b.is_format_supported = si_is_format_supported;
+       sscreen->b.b.resource_create = r600_resource_create_common;
 
        if (!r600_common_screen_init(&sscreen->b, ws)) {
                FREE(sscreen);