diff options
author | Jason Ekstrand <[email protected]> | 2015-11-06 13:32:52 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-11-06 13:32:52 -0800 |
commit | 612e35b2c65c99773b73e53d0e6fd112b1a7431f (patch) | |
tree | 32ba8f5964b6cb28fdad912c1fe80d5abd10b144 /src/vulkan/anv_private.h | |
parent | f8052351ac1cce196b99a78114d513695fbca4d6 (diff) |
anv: Do range-checking in the shader for dynamic buffers
Diffstat (limited to 'src/vulkan/anv_private.h')
-rw-r--r-- | src/vulkan/anv_private.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/vulkan/anv_private.h b/src/vulkan/anv_private.h index 25f88fc8b84..821e16164eb 100644 --- a/src/vulkan/anv_private.h +++ b/src/vulkan/anv_private.h @@ -852,8 +852,11 @@ struct anv_push_constants { uint32_t base_vertex; uint32_t base_instance; - /* Offsets for dynamically bound buffers */ - uint32_t dynamic_offsets[MAX_DYNAMIC_BUFFERS]; + /* Offsets and ranges for dynamically bound buffers */ + struct { + uint32_t offset; + uint32_t range; + } dynamic[MAX_DYNAMIC_BUFFERS]; /* Image data for image_load_store on pre-SKL */ struct brw_image_param images[MAX_IMAGES]; |