sna: Add DBG breadcrumbs to gradient initialisation

Put some markers into the debug log as those functions create many
proxies causing a lot of debug noise.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-01-17 10:24:06 +00:00
parent d14341cb22
commit da90afc32f
1 changed files with 8 additions and 0 deletions

View File

@ -314,6 +314,8 @@ static Bool sna_alpha_cache_init(struct sna *sna)
uint32_t color[256];
int i;
DBG(("%s\n", __FUNCTION__));
cache->cache_bo = kgem_create_linear(&sna->kgem, sizeof(color));
if (!cache->cache_bo)
return FALSE;
@ -333,6 +335,8 @@ static Bool sna_solid_cache_init(struct sna *sna)
{
struct sna_solid_cache *cache = &sna->render.solid_cache;
DBG(("%s\n", __FUNCTION__));
cache->cache_bo =
kgem_create_linear(&sna->kgem, sizeof(cache->color));
if (!cache->cache_bo)
@ -354,6 +358,8 @@ static Bool sna_solid_cache_init(struct sna *sna)
Bool sna_gradients_create(struct sna *sna)
{
DBG(("%s\n", __FUNCTION__));
if (!sna_alpha_cache_init(sna))
return FALSE;
@ -367,6 +373,8 @@ void sna_gradients_close(struct sna *sna)
{
int i;
DBG(("%s\n", __FUNCTION__));
for (i = 0; i < 256; i++) {
if (sna->render.alpha_cache.bo[i])
kgem_bo_destroy(&sna->kgem, sna->render.alpha_cache.bo[i]);