mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 12:50:12 +01:00
i965/blorp: Set the dynamic state upper bound.
We know from previous bug fixes (commitsc25e5300cbandb2ace06cbb) that texture border color doesn't work if the dynamic state upper bound is set to 0. Although the blorp engine doesn't make use of texture borders, it seems like we ought to err on the safe side and set this value properly. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
f77959b2c9
commit
de9752a4e5
1 changed files with 6 additions and 1 deletions
|
|
@ -136,7 +136,12 @@ gen6_blorp_emit_state_base_address(struct brw_context *brw,
|
|||
OUT_BATCH(1); /* InstructionBaseAddress */
|
||||
}
|
||||
OUT_BATCH(1); /* GeneralStateUpperBound */
|
||||
OUT_BATCH(1); /* DynamicStateUpperBound */
|
||||
/* Dynamic state upper bound. Although the documentation says that
|
||||
* programming it to zero will cause it to be ignored, that is a lie.
|
||||
* If this isn't programmed to a real bound, the sampler border color
|
||||
* pointer is rejected, causing border color to mysteriously fail.
|
||||
*/
|
||||
OUT_BATCH(0xfffff001);
|
||||
OUT_BATCH(1); /* IndirectObjectUpperBound*/
|
||||
OUT_BATCH(1); /* InstructionAccessUpperBound */
|
||||
ADVANCE_BATCH();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue