[Mesa-dev] [PATCH 2/2] radeonsi: remove useless check in si_blit_decompress_color()

Samuel Pitoiset samuel.pitoiset at gmail.com
Tue Sep 26 13:36:12 UTC 2017



On 09/26/2017 12:45 PM, Nicolai Hähnle wrote:
> Gert's suggestion makes sense. Apart from that, the series is

Yeah, I will add an assert over there, thanks!

> 
> Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
> 
> 
> On 22.09.2017 09:22, Samuel Pitoiset wrote:
>> That's unnecessary to double-check that dcc_offset is not 0
>> because all callers already check that.
>>
>> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
>> ---
>>   src/gallium/drivers/radeonsi/si_blit.c | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/src/gallium/drivers/radeonsi/si_blit.c 
>> b/src/gallium/drivers/radeonsi/si_blit.c
>> index 0ecfc83fe2..2c846d2914 100644
>> --- a/src/gallium/drivers/radeonsi/si_blit.c
>> +++ b/src/gallium/drivers/radeonsi/si_blit.c
>> @@ -470,7 +470,7 @@ static void si_blit_decompress_color(struct 
>> pipe_context *ctx,
>>                    "Decompress Color (levels %u - %u, mask 0x%x)\n\n",
>>                    first_level, last_level, level_mask);
>> -    if (rtex->dcc_offset && need_dcc_decompress) {
>> +    if (need_dcc_decompress) {
>>           custom_blend = sctx->custom_blend_dcc_decompress;
>>           /* disable levels without DCC */
>>
> 
> 


More information about the mesa-dev mailing list