From 31db4a3200b3ff2fe9521c62c16ea363d9faea2e Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Wed, 15 Nov 2017 10:03:32 +1000 Subject: r600: handle image size support. This adds support for the RESQ opcode with the workaround required due to hw bugs for buffers and cube arrays. Tested-By: Gert Wollny Signed-off-by: Dave Airlie --- src/gallium/drivers/r600/r600_shader.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gallium/drivers/r600/r600_shader.h') diff --git a/src/gallium/drivers/r600/r600_shader.h b/src/gallium/drivers/r600/r600_shader.h index ccbcd6723ad..5d6501c8d38 100644 --- a/src/gallium/drivers/r600/r600_shader.h +++ b/src/gallium/drivers/r600/r600_shader.h @@ -119,12 +119,14 @@ struct r600_shader { boolean uses_images; uint8_t atomic_base; uint8_t rat_base; + uint8_t image_size_const_offset; }; union r600_shader_key { struct { unsigned nr_cbufs:4; unsigned first_atomic_counter:4; + unsigned image_size_const_offset:5; unsigned color_two_side:1; unsigned alpha_to_one:1; } ps; -- cgit v1.2.3