summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancisco Jerez <[email protected]>2014-02-16 19:35:11 +0100
committerFrancisco Jerez <[email protected]>2014-02-21 12:29:05 +0100
commit198cd136b94b2ddfb8e2d50e567f3e391eb93915 (patch)
tree6ac5535c37f059175c60a0558626ed506271ef33
parentc97763ca2d740bd44062a81def9a49a03dcc0424 (diff)
clover: Fix up NULL constant pointer arguments.
Tested-by: Tom Stellard <[email protected]>
-rw-r--r--src/gallium/state_trackers/clover/core/kernel.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/clover/core/kernel.cpp b/src/gallium/state_trackers/clover/core/kernel.cpp
index 6d894cd66ec..fa9453b0be3 100644
--- a/src/gallium/state_trackers/clover/core/kernel.cpp
+++ b/src/gallium/state_trackers/clover/core/kernel.cpp
@@ -411,7 +411,8 @@ kernel::constant_argument::bind(exec_context &ctx,
void
kernel::constant_argument::unbind(exec_context &ctx) {
- buf->resource(*ctx.q).unbind_surface(*ctx.q, st);
+ if (buf)
+ buf->resource(*ctx.q).unbind_surface(*ctx.q, st);
}
void