Skip to content
Snippets Groups Projects
Commit 149a8e31 authored by Isabella Bosia's avatar Isabella Bosia Committed by Alexandre Julliard
Browse files

vkd3d-shader: Don't print 1-st index in constant buffers if < 5.1.

parent 891952e6
No related branches found
No related tags found
No related merge requests found
......@@ -955,7 +955,11 @@ static void shader_dump_register(struct vkd3d_string_buffer *buffer,
if (printbrackets)
shader_addline(buffer, "]");
if (reg->idx[1].offset != ~0u)
/* For CBs in sm < 5.1 we move the buffer offset from idx[1] to idx[2]
* to normalise it with 5.1.
* Here we should ignore it if it's a CB in sm < 5.1. */
if (reg->idx[1].offset != ~0u &&
(reg->type != VKD3DSPR_CONSTBUFFER || shader_ver_ge(shader_version, 5, 1)))
{
shader_addline(buffer, "[");
if (reg->idx[1].rel_addr)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment