r600, compute: Do not overwrite pipe_resource.screen
authorJan Vesely <jan.vesely@rutgers.edu>
Fri, 5 Feb 2016 22:54:57 +0000 (17:54 -0500)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Sat, 6 Feb 2016 02:17:15 +0000 (21:17 -0500)
found by inspection.

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/r600/evergreen_compute.c

index 2cf08897a8d945858b88e8697f44a5b5ff2188e7..d92e691fdb88ec685f94e14b69f6411f0c5aac91 100644 (file)
@@ -961,8 +961,8 @@ struct pipe_resource *r600_compute_global_buffer_create(
                        templ->array_size);
 
        result->base.b.vtbl = &r600_global_buffer_vtbl;
-       result->base.b.b.screen = screen;
        result->base.b.b = *templ;
+       result->base.b.b.screen = screen;
        pipe_reference_init(&result->base.b.b.reference, 1);
 
        size_in_dw = (templ->width0+3) / 4;