On 10/09/2013 03:14 PM, Ian Romanick wrote:
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? :)
In most of the miptree code, there is no ctx, so I avoided _mesa_problem().
But you're right. In the hiz allocation functio, we do have a ctx.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev