OSDN Git Service

radeon/r200: fix bogus assert/scissor wrt width/height 2048
authorRoland Scheidegger <sroland@vmware.com>
Fri, 27 Jul 2012 02:03:45 +0000 (04:03 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Wed, 1 Aug 2012 12:58:15 +0000 (14:58 +0200)
commit5b88a2a22daae4d09596804d8edc6b8796d05150
treee43464f43f0c5666222a5b710e0757f1754d2885
parent6574fe3c4a9e36791cde88dfd73429ba4faf3215
radeon/r200: fix bogus assert/scissor wrt width/height 2048

This addresses one issue raised in bug #51658 discovered by Eugene St Leger.
The assert is bogus since there's no problem with texture width/height being
2048 (the width/height programmed is width/height minus one).
OTOH though the programmed size for scissor rect should be width/height
minus one too otherwise bad things may happen (as it is inclusive, and there's
not enough bits for more than a value of 2047).
src/mesa/drivers/dri/r200/r200_blit.c
src/mesa/drivers/dri/radeon/radeon_blit.c