diff options
author | Jason Ekstrand <jason@jlekstrand.net> | 2016-09-12 15:50:05 -0700 |
---|---|---|
committer | Jason Ekstrand <jason.ekstrand@intel.com> | 2016-09-14 17:51:16 -0700 |
commit | a814e18c96ccc70473103cf08a675265f0d1b3c9 (patch) | |
tree | 33e031db4fab6f725803a105636f7d779771fc83 /src/intel/vulkan | |
parent | b56f509ee0d6fcf85eb01aecfdcc66fb784fee97 (diff) | |
download | external_mesa3d-a814e18c96ccc70473103cf08a675265f0d1b3c9.zip external_mesa3d-a814e18c96ccc70473103cf08a675265f0d1b3c9.tar.gz external_mesa3d-a814e18c96ccc70473103cf08a675265f0d1b3c9.tar.bz2 |
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 <jason@jlekstrand.net>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Diffstat (limited to 'src/intel/vulkan')
-rw-r--r-- | src/intel/vulkan/genX_blorp_exec.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/intel/vulkan/genX_blorp_exec.c b/src/intel/vulkan/genX_blorp_exec.c index a3ad97a..5ddbb7d 100644 --- a/src/intel/vulkan/genX_blorp_exec.c +++ b/src/intel/vulkan/genX_blorp_exec.c @@ -203,21 +203,6 @@ genX(blorp_exec)(struct blorp_batch *batch, blorp_exec(batch, params); - /* BLORP sets DRAWING_RECTANGLE but we always want it set to the maximum. - * Since we set it once at driver init and never again, we have to set it - * back after invoking blorp. - * - * TODO: BLORP should assume a max drawing rectangle - */ - blorp_emit(batch, GENX(3DSTATE_DRAWING_RECTANGLE), rect) { - rect.ClippedDrawingRectangleYMin = 0; - rect.ClippedDrawingRectangleXMin = 0; - rect.ClippedDrawingRectangleYMax = UINT16_MAX; - rect.ClippedDrawingRectangleXMax = UINT16_MAX; - rect.DrawingRectangleOriginY = 0; - rect.DrawingRectangleOriginX = 0; - } - cmd_buffer->state.vb_dirty = ~0; cmd_buffer->state.dirty = ~0; cmd_buffer->state.push_constants_dirty = ~0; |