mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 06:30:11 +01:00
anv/cmd_buffer: Clarify HZ rectangle behavior
This behavior differs from what's described in the PRMs and was observed by analyzing CTS test results. Signed-off-by: Nanley Chery <nanley.g.chery@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
63318d34ac
commit
6ff4c24fdd
1 changed files with 2 additions and 1 deletions
|
|
@ -481,9 +481,10 @@ genX(cmd_buffer_emit_hz_op)(struct anv_cmd_buffer *cmd_buffer,
|
|||
hzp.ClearRectangleXMax = align_u32(iview->extent.width, 8);
|
||||
hzp.ClearRectangleYMax = align_u32(iview->extent.height, 4);
|
||||
} else {
|
||||
/* This clear rectangle is aligned */
|
||||
/* Contrary to the HW docs both fields are inclusive */
|
||||
hzp.ClearRectangleXMin = cmd_state->render_area.offset.x;
|
||||
hzp.ClearRectangleYMin = cmd_state->render_area.offset.y;
|
||||
/* Contrary to the HW docs both fields are exclusive */
|
||||
hzp.ClearRectangleXMax = cmd_state->render_area.offset.x +
|
||||
align_u32(cmd_state->render_area.extent.width, px_dim.width);
|
||||
hzp.ClearRectangleYMax = cmd_state->render_area.offset.y +
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue