r600: allocate immed buffer resource for images.
authorDave Airlie <airlied@redhat.com>
Tue, 14 Nov 2017 23:47:03 +0000 (09:47 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 17 Nov 2017 01:31:40 +0000 (11:31 +1000)
commitac4f175d79c85fd4910f99ef945069ff681bd7fd
treed63d1f75b8f192ba73a75861e99ce3185d4d150d
parent77d36cbc8de85ea5c4e8caf071cbc6661e0cd75c
r600: allocate immed buffer resource for images.

In order to image readback we have to execute a MEM_RAT instruction
that needs a buffer to transfer the result into until the shader
can fetch it.

Tested-By: Gert Wollny <gw.fossdev@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/r600_buffer_common.c
src/gallium/drivers/r600/r600_pipe_common.h
src/gallium/drivers/r600/r600_texture.c