summaryrefslogtreecommitdiff
path: root/src/sna/sna_gradient.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-01-17 10:24:06 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2012-01-17 11:51:25 +0000
commitda90afc32f19e9168cbaa4e0cdcd941d12f2c142 (patch)
tree2c3ebaf3719c4a27382d2dc32c3ce32d4ca4c2a3 /src/sna/sna_gradient.c
parentd14341cb22e37f52070cd92b707fec5e08038e96 (diff)
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>
Diffstat (limited to 'src/sna/sna_gradient.c')
-rw-r--r--src/sna/sna_gradient.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sna/sna_gradient.c b/src/sna/sna_gradient.c
index 2aa9bbd6..96841dd4 100644
--- a/src/sna/sna_gradient.c
+++ b/src/sna/sna_gradient.c
@@ -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]);