diff options
author | Kenneth Graunke <[email protected]> | 2016-03-03 16:21:09 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2016-03-03 16:21:09 -0800 |
commit | 3ed260f54cc353398965037f12f39aafa086bcc5 (patch) | |
tree | b5c8e5c880c692d18855cd5cd6b0b465abb92cee /src/intel/vulkan | |
parent | 56ba13c994fc3b1c4058bb99656dad6fa2aa819d (diff) |
hack to make dota 2 menus work
Diffstat (limited to 'src/intel/vulkan')
-rw-r--r-- | src/intel/vulkan/genX_cmd_buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index a888c360673..a31ecc398e7 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++ b/src/intel/vulkan/genX_cmd_buffer.c @@ -721,8 +721,8 @@ void genX(CmdBeginRenderPass)( const VkRect2D *render_area = &pRenderPassBegin->renderArea; anv_batch_emit(&cmd_buffer->batch, GENX(3DSTATE_DRAWING_RECTANGLE), - .ClippedDrawingRectangleYMin = render_area->offset.y, - .ClippedDrawingRectangleXMin = render_area->offset.x, + .ClippedDrawingRectangleYMin = MAX2(render_area->offset.y, 0), + .ClippedDrawingRectangleXMin = MAX2(render_area->offset.x, 0), .ClippedDrawingRectangleYMax = render_area->offset.y + render_area->extent.height - 1, .ClippedDrawingRectangleXMax = |