iris: Fix constant buffer sizes for non-UBOs
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 10 Sep 2019 16:04:20 +0000 (09:04 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 10 Sep 2019 17:53:15 +0000 (10:53 -0700)
commit077a1952cceb9b577437c9e31be094427d5c7a9a
tree428f9270a828c448f61aa724790902eed926fe8d
parent341034a73d0b53f8c3d9b4cb8cbc89eb5b1b4f49
iris: Fix constant buffer sizes for non-UBOs

Since the system value refactor, we've accidentally only been setting
cbuf->buffer_size in the UBO case, and not in the uploaded-constants
case.  We use cbuf->buffer_size to fill out the SURFACE_STATE entry,
so it needs to be initialized in both cases.

Fixes: 3b6d787e404 ("iris: move sysvals to their own constant buffer")
src/gallium/drivers/iris/iris_state.c