gallium/radeon: pass pipe_resource and other params to surface_init directly
authorMarek Olšák <marek.olsak@amd.com>
Sun, 23 Oct 2016 18:17:32 +0000 (20:17 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 26 Oct 2016 11:02:58 +0000 (13:02 +0200)
commite9590d9092fbcd551f5597149c64016b6f861233
treebce323902bb5a080d926fc2b8d6e5b23c0cbfe9e
parent8b94976df9996c222e5510f491fc865dae3bc412
gallium/radeon: pass pipe_resource and other params to surface_init directly

This removes input-only parameters from the radeon_surf structure.

Some of the translation logic from pipe_resource to radeon_surf is moved to
winsys/radeon.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeon/r600_texture.c
src/gallium/drivers/radeon/radeon_winsys.h
src/gallium/winsys/amdgpu/drm/amdgpu_surface.c
src/gallium/winsys/radeon/drm/radeon_drm_surface.c