diff options
author | Chia-I Wu <[email protected]> | 2015-03-06 02:03:10 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2015-03-06 02:25:03 +0800 |
commit | 4ddd981e407f9e97fcbb862c241f1ce165616fd4 (patch) | |
tree | 5127116d96ae302939b00c7ad718796899fc95c1 /src/gallium/drivers/ilo/ilo_query.c | |
parent | 70ef171e91582f60a010a4f0ea9f7ff5ba971ab4 (diff) |
ilo: add more convenient intel_bo_{ref,unref}()
They both check for NULL and intel_bo_ref() returns the referenced bo. They
replace intel_bo_{reference,unreference}().
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_query.c')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_query.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gallium/drivers/ilo/ilo_query.c b/src/gallium/drivers/ilo/ilo_query.c index 942df2d683d..7a2e5030e00 100644 --- a/src/gallium/drivers/ilo/ilo_query.c +++ b/src/gallium/drivers/ilo/ilo_query.c @@ -107,9 +107,7 @@ ilo_destroy_query(struct pipe_context *pipe, struct pipe_query *query) { struct ilo_query *q = ilo_query(query); - if (q->bo) - intel_bo_unreference(q->bo); - + intel_bo_unref(q->bo); FREE(q); } |