On 30 November 2015 at 22:20, Oded Gabbay <[email protected]> wrote:
> On Mon, Nov 30, 2015 at 8:20 AM, Dave Airlie <[email protected]> wrote:
>> From: Dave Airlie <[email protected]>
>>
>> This function is going to get a lot messier with tessellation
>> so I'm going to use some macros to try and clean some bits
>> of common code up.
>>
>> Signed-off-by: Dave Airlie <[email protected]>
>> ---
>>  src/gallium/drivers/r600/r600_state_common.c | 21 +++++++++------------
>>  1 file changed, 9 insertions(+), 12 deletions(-)
>>
>> diff --git a/src/gallium/drivers/r600/r600_state_common.c 
>> b/src/gallium/drivers/r600/r600_state_common.c
>> index b544abb..b6d739d 100644
>> --- a/src/gallium/drivers/r600/r600_state_common.c
>> +++ b/src/gallium/drivers/r600/r600_state_common.c
>> @@ -1288,6 +1288,11 @@ static void r600_update_clip_state(struct 
>> r600_context *rctx,
>>                                 r600_mark_atom_dirty(rctx, 
>> &rctx->clip_misc_state.atom);
>>         }
>>  }
>> +#define SELECT_SHADER_OR_FAIL(x) do {                                  \
>> +               r600_shader_select(ctx, rctx->x##_shader, &x##_dirty);  \
>> +               if (unlikely(!rctx->x##_shader))                        \
>
> Isn't the above statement missing the "->current" reference ?

Good catch.
Dave.
_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to