[Mesa-dev] [PATCH 2/2] i965: Use IVB specific formula for depthbuffer

Ian Romanick idr at freedesktop.org
Thu Oct 10 00:14:55 CEST 2013


On 10/09/2013 02:49 PM, Chad Versace wrote:
> On 10/08/2013 04:27 PM, Ben Widawsky wrote:
>> +      }
>> +      hz_height /= 2;
>> +      break;
>> +   default:
>> +      perf_debug("Unknown depthbuffer texture type (%d).", mt->target);
> 
> I thought I commented on the perf_debug() before, but maybe I forgot to
> send that draft.
> 
> perf_debug() should be used only for known issues that affect
> performance. The issue
> here is much more dire: if we hit the default case, then we have hit a
> real bug, because
> we forgot to write code to handle all the targets.
> 
> Instead, use fprintf(stderr, ...). Also, always print GLenum values as
> "0x%x".

You mean _mesa_problem, right? :)



More information about the mesa-dev mailing list