diff options
author | Topi Pohjolainen <[email protected]> | 2015-03-29 21:52:02 +0300 |
---|---|---|
committer | Topi Pohjolainen <[email protected]> | 2015-04-30 00:28:49 +0300 |
commit | 13670e8bade296c5c5846dc08615563ad51685e4 (patch) | |
tree | 0ed789cbca5860da6dc07cfdaed70593d060ccee | |
parent | dfd896699d9f640518c0fbafb0352f454d5fc466 (diff) |
i965/blorp: Prepare drawing rectangle for flipped coordinates
Reviewed-by: Kenneth Graunke <[email protected]>
Signed-off-by: Topi Pohjolainen <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/gen6_blorp.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/gen6_blorp.cpp b/src/mesa/drivers/dri/i965/gen6_blorp.cpp index ed08898d957..b6a3d78d849 100644 --- a/src/mesa/drivers/dri/i965/gen6_blorp.cpp +++ b/src/mesa/drivers/dri/i965/gen6_blorp.cpp @@ -950,8 +950,8 @@ gen6_blorp_emit_drawing_rectangle(struct brw_context *brw, BEGIN_BATCH(4); OUT_BATCH(_3DSTATE_DRAWING_RECTANGLE << 16 | (4 - 2)); OUT_BATCH(0); - OUT_BATCH(((params->x1 - 1) & 0xffff) | - ((params->y1 - 1) << 16)); + OUT_BATCH(((MAX2(params->x1, params->x0) - 1) & 0xffff) | + ((MAX2(params->y1, params->y0) - 1) << 16)); OUT_BATCH(0); ADVANCE_BATCH(); } |