diff options
author | Jason Ekstrand <[email protected]> | 2016-09-12 15:50:05 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-09-14 17:51:16 -0700 |
commit | a814e18c96ccc70473103cf08a675265f0d1b3c9 (patch) | |
tree | 33e031db4fab6f725803a105636f7d779771fc83 /src/mesa/drivers | |
parent | b56f509ee0d6fcf85eb01aecfdcc66fb784fee97 (diff) |
intel/blorp: Stop setting 3DSTATE_DRAWING_RECTANGLE
The Vulkan driver sets 3DSTATE_DRAWING_RECTANGLE once to MAX_INT x MAX_INT
at the GPU initialization time and never sets it again. The GL driver sets
it every time the framebuffer changes. Originally, blorp set it to the
size of the drawing area but meant we had to set it back in the Vulkan
driver. Instead, we can easily just do that in the GL driver's blorp_exec
implementation and not set it in blorp core.
Signed-off-by: Jason Ekstrand <[email protected]>
Reviewed-by: Anuj Phogat <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i965/genX_blorp_exec.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/genX_blorp_exec.c b/src/mesa/drivers/dri/i965/genX_blorp_exec.c index 8cd5a62bf09..edcd8964098 100644 --- a/src/mesa/drivers/dri/i965/genX_blorp_exec.c +++ b/src/mesa/drivers/dri/i965/genX_blorp_exec.c @@ -206,6 +206,11 @@ retry: brw_emit_depth_stall_flushes(brw); + blorp_emit(batch, GENX(3DSTATE_DRAWING_RECTANGLE), rect) { + rect.ClippedDrawingRectangleXMax = MAX2(params->x1, params->x0) - 1; + rect.ClippedDrawingRectangleYMax = MAX2(params->y1, params->y0) - 1; + } + blorp_exec(batch, params); /* Make sure we didn't wrap the batch unintentionally, and make sure we |