[Mesa-dev] [PATCH 1/3] mesa: remove call to Driver.Scissor() in _mesa_WindowRectanglesEXT()

Samuel Pitoiset samuel.pitoiset at gmail.com
Fri Jun 2 12:40:24 UTC 2017



On 06/02/2017 02:34 PM, Ilia Mirkin wrote:
> As I mentioned to you on IRC... my understanding of the Driver.Scissor
> callback is that it's a guarantee by the mesa core that whenever
> Scissor.* changes, Driver.Scissor() gets called if it's there.
> 
> Just because nothing cares on the other side of the abstraction
> barrier doesn't implicitly mean it should be removed.

Well, the window rectangle fields could be moved outside of the scissor 
struct state actually.

> 
> On Fri, Jun 2, 2017 at 8:31 AM, Samuel Pitoiset
> <samuel.pitoiset at gmail.com> wrote:
>> This is actually useless because this driver call is only used
>> by the classic DRI drivers which don't support that extension
>> and probably won't never support it.
>>
>> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
>> ---
>>   src/mesa/main/scissor.c | 3 ---
>>   1 file changed, 3 deletions(-)
>>
>> diff --git a/src/mesa/main/scissor.c b/src/mesa/main/scissor.c
>> index 1c766f4c41..5f2f61f926 100644
>> --- a/src/mesa/main/scissor.c
>> +++ b/src/mesa/main/scissor.c
>> @@ -258,9 +258,6 @@ _mesa_WindowRectanglesEXT(GLenum mode, GLsizei count, const GLint *box)
>>             sizeof(struct gl_scissor_rect) * count);
>>      ctx->Scissor.NumWindowRects = count;
>>      ctx->Scissor.WindowRectMode = mode;
>> -
>> -   if (ctx->Driver.Scissor)
>> -      ctx->Driver.Scissor(ctx);
>>   }
>>
>>
>> --
>> 2.13.0
>>
>> _______________________________________________
>> mesa-dev mailing list
>> mesa-dev at lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list