diff options
author | Kenneth Graunke <[email protected]> | 2017-10-25 09:37:09 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2017-10-27 03:01:13 -0700 |
commit | 70cd05d6ac533977f96aa832bbb2886172019f35 (patch) | |
tree | 65710ce41583e5179de18d38bb49c57b1ba4efab /src/intel/vulkan | |
parent | 49d3c004f17bcbff0a4822b49268fcde412b38e2 (diff) |
anv: Fix assert about source attrs.
Asserting slot >= 2 made sense when the URB read offset was always 1
(pair of slots). Commit 566a0c43f0b9fbf5106161471dd5061c7275f761 made
it possible to read from the VUE header in slot 0, by adjusting the
offset to be 0. So, this assert is now bogus. Use the one from GL.
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/vulkan')
-rw-r--r-- | src/intel/vulkan/genX_pipeline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c index 326fc30dd31..7e3a785c584 100644 --- a/src/intel/vulkan/genX_pipeline.c +++ b/src/intel/vulkan/genX_pipeline.c @@ -379,8 +379,8 @@ emit_3dstate_sbe(struct anv_pipeline *pipeline) /* We have to subtract two slots to accout for the URB entry output * read offset in the VS and GS stages. */ - assert(slot >= 2); const int source_attr = slot - 2 * urb_entry_read_offset; + assert(source_attr >= 0 && source_attr < 32); max_source_attr = MAX2(max_source_attr, source_attr); swiz.Attribute[input_index].SourceAttribute = source_attr; } |