r600g: initialize CMASK and HTILE with the GPU using streamout
authorMarek Olšák <maraeo@gmail.com>
Sun, 21 Apr 2013 21:26:52 +0000 (23:26 +0200)
committerMarek Olšák <maraeo@gmail.com>
Tue, 23 Apr 2013 18:26:20 +0000 (20:26 +0200)
commitb69207642079fe8ba33c594750415e8d9c66a06f
treef71b6cfd90363297b7f15c0acd55508267fc7a5a
parent1ba46bbb4c99caa7e297f2ec6717e962765275cb
r600g: initialize CMASK and HTILE with the GPU using streamout

This fixes a crash when a resource cannot be mapped to the CPU's address space
because it's too big.

This puts a global pipe_context in r600_screen, which is guarded by a mutex,
so that we can use pipe_context when there isn't one around.
Hopefully our multi-context support is solid.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
NOTE: This is a candidate for the 9.1 branch.
src/gallium/drivers/r600/r600_blit.c
src/gallium/drivers/r600/r600_pipe.c
src/gallium/drivers/r600/r600_pipe.h
src/gallium/drivers/r600/r600_texture.c