[Mesa-dev] [PATCH 11/16] st/nine: Ignore D3DUSAGE_QUERY_POSTPIXELSHADER_BLENDING when D3DUSAGE_RENDERTARGET is specified

Axel Davy axel.davy at ens.fr
Fri Apr 24 14:36:56 PDT 2015


Oups, yep I changed the commit message to make it shorter, but I made it 
say the opposite that what it was suppose to...

Le 24/04/2015 23:32, Ilia Mirkin a écrit :
> The diff does not agree with the commit description. Also please limit
> commit descriptions to 72 chars.
>
> On Fri, Apr 24, 2015 at 4:09 PM, Axel Davy <axel.davy at ens.fr> wrote:
>> From: Xavier Bouchoux <xavierb at gmail.com>
>>
>> This behaviour matches windows drivers.
>>
>> Reviewed-by: Axel Davy <axel.davy at ens.fr>
>> Signed-off-by: Xavier Bouchoux <xavierb at gmail.com>
>> ---
>>   src/gallium/state_trackers/nine/adapter9.c | 3 ++-
>>   1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/src/gallium/state_trackers/nine/adapter9.c b/src/gallium/state_trackers/nine/adapter9.c
>> index 1d75155..9d6d659 100644
>> --- a/src/gallium/state_trackers/nine/adapter9.c
>> +++ b/src/gallium/state_trackers/nine/adapter9.c
>> @@ -311,7 +311,8 @@ NineAdapter9_CheckDeviceFormat( struct NineAdapter9 *This,
>>       if (CheckFormat == D3DFMT_ATOC && RType == D3DRTYPE_SURFACE)
>>           return D3D_OK;
>>
>> -    if (Usage & D3DUSAGE_QUERY_POSTPIXELSHADER_BLENDING)
>> +    if ((Usage & D3DUSAGE_QUERY_POSTPIXELSHADER_BLENDING) &&
>> +        (Usage & D3DUSAGE_RENDERTARGET))
>>           bind |= PIPE_BIND_BLENDABLE;
>>
>>       if (Usage & D3DUSAGE_DMAP) {
>> --
>> 2.1.0
>>
>> _______________________________________________
>> mesa-dev mailing list
>> mesa-dev at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/mesa-dev



More information about the mesa-dev mailing list