nir/lower_io: Add a 32 and 64-bit global address formats

These are simple scalar addresses.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
Jason Ekstrand
2019-01-07 17:17:46 -06:00
parent e461926ef2
commit 314d2c90c3
2 changed files with 123 additions and 30 deletions

View File

@@ -2946,6 +2946,16 @@ bool nir_lower_io(nir_shader *shader,
nir_lower_io_options);
typedef enum {
/**
* An address format which is a simple 32-bit global GPU address.
*/
nir_address_format_32bit_global,
/**
* An address format which is a simple 64-bit global GPU address.
*/
nir_address_format_64bit_global,
/**
* An address format which is comprised of a vec2 where the first
* component is a vulkan descriptor index and the second is an offset.