OSDN Git Service

i965: Increase BRW_MAX_UBO to 14.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 30 Nov 2015 09:54:42 +0000 (01:54 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 1 Dec 2015 22:55:33 +0000 (14:55 -0800)
commit975b1299dd495a910bcfb86e3dc24131ed3c2e2f
treee03f136485525ddb20b512f4c2b99c4747bf567b
parent7e6a6f3e619e7dfed244043a95082f2168a5c953
i965: Increase BRW_MAX_UBO to 14.

The NVIDIA binary driver and Intel's closed source driver both expose
14 here, rather than the GL minimum of 12.  Let's follow suit.

Without this, Shadow of Mordor fails to render correctly and triggers
OpenGL errors:

Mesa: User error: GL_INVALID_VALUE in glBindBufferBase(index=68)
Mesa: User error: GL_INVALID_VALUE in glUniformBlockBinding(block binding 68 >= 60)

There are 5 stages (VS, TCS, TES, GS, FS), and 12 * 5 = 60 is too small.
14 * 5 = 70 will work just fine.

Tapani believes this will also help Alien Isolation.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Acked-by: Tapani Pälli <tapani.palli@intel.com>
Acked-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_context.h