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

Ilia Mirkin imirkin at alum.mit.edu
Fri Jun 2 12:44:07 UTC 2017


On Fri, Jun 2, 2017 at 8:40 AM, Samuel Pitoiset
<samuel.pitoiset at gmail.com> wrote:
>
>
> 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.

They're part of the "scissor" attrib group (see the spec), which was
why I originally put it there. There doesn't *have* to be a 1:1
mapping, but life is easier when it is. (That's the main reason for
the existence of those structs in the first place.)

  -ilia


More information about the mesa-dev mailing list