diff options
author | Marek Olšák <[email protected]> | 2011-09-27 23:08:04 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2011-09-30 23:19:52 +0200 |
commit | 3d13b081c72626acba6b9a25baec740c60dfafe1 (patch) | |
tree | 52b980cb47924f976f1d147cb2f3ae432dbe1fef /src/gallium/drivers/softpipe | |
parent | f5bfe54a34d9c8cd5de2b096d0e8486fe0d990a7 (diff) |
gallium: add PIPE_CAP_CONDITIONAL_RENDER
We were checking whether render_condition is set. That was not reliable,
because it's always set with trace and noop regardless of driver support.
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/softpipe')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_screen.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/softpipe/sp_screen.c b/src/gallium/drivers/softpipe/sp_screen.c index 24852a53976..485104942ef 100644 --- a/src/gallium/drivers/softpipe/sp_screen.c +++ b/src/gallium/drivers/softpipe/sp_screen.c @@ -124,6 +124,8 @@ softpipe_get_param(struct pipe_screen *screen, enum pipe_cap param) return -8; case PIPE_CAP_MAX_TEXEL_OFFSET: return 7; + case PIPE_CAP_CONDITIONAL_RENDER: + return 1; default: return 0; } |