summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_private.h
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-12-06 17:49:20 +0100
committerSamuel Pitoiset <[email protected]>2017-12-08 11:21:36 +0100
commitc7c7b0088998a82a6f06f1a5d2546150ea6f4ffb (patch)
tree32c4e81d82cf67a05b818f72b85d4a9e65c4cf72 /src/amd/vulkan/radv_private.h
parenta302009b7b8e5d29e9cd78e48e52b897db85e027 (diff)
radv: only re-mit the index type when it changes
dota2 binds a ton of index buffers but the type is always 16-bit. Note that we have to invalidate the type when switching from indexed draws to normal draws. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_private.h')
-rw-r--r--src/amd/vulkan/radv_private.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h
index b1f6eacef1c..16afd6d6921 100644
--- a/src/amd/vulkan/radv_private.h
+++ b/src/amd/vulkan/radv_private.h
@@ -830,6 +830,7 @@ struct radv_cmd_state {
uint32_t index_type;
uint32_t max_index_count;
uint64_t index_va;
+ int32_t last_index_type;
int32_t last_primitive_reset_en;
uint32_t last_primitive_reset_index;