i965: Switch to absolute addressing for constant buffer 0.
By default, 3DSTATE_CONSTANT_* Constant Buffer 0 is relative to dynamic state base address. This makes it unusable for pushing UBOs. I'd like to be able to use all four push buffers. There is a bit in the INSTPM register (or CS_DEBUG_MODE2 on Skylake) which controls whether buffer 0 is relative to dynamic state base address, or simply a normal pointer. Setting that gives us full flexibility. We can't currently write this on Haswell and earlier, and will need to update the kernel command parser, and then do the whole version checking song and dance. Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
@@ -100,6 +100,12 @@ struct brw_compiler {
|
||||
* This can negatively impact performance.
|
||||
*/
|
||||
bool precise_trig;
|
||||
|
||||
/**
|
||||
* Is 3DSTATE_CONSTANT_*'s Constant Buffer 0 relative to Dynamic State
|
||||
* Base Address? (If not, it's a normal GPU address.)
|
||||
*/
|
||||
bool constant_buffer_0_is_relative;
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user