summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600_shader.h
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2017-11-15 10:03:32 +1000
committerDave Airlie <[email protected]>2017-11-17 11:31:41 +1000
commit31db4a3200b3ff2fe9521c62c16ea363d9faea2e (patch)
tree1a6c436f157fab17cba3e9636f45797b11c40eca /src/gallium/drivers/r600/r600_shader.h
parentf94f5c9a9f7a41f688659450d52e19e8295fce4a (diff)
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 <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_shader.h')
-rw-r--r--src/gallium/drivers/r600/r600_shader.h2
1 files changed, 2 insertions, 0 deletions
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;