diff options
author | Francisco Jerez <currojerez@riseup.net> | 2010-11-15 16:48:29 +0100 |
---|---|---|
committer | Francisco Jerez <currojerez@riseup.net> | 2010-11-15 17:42:08 +0100 |
commit | 88850b3e4f5f2692bf77d46fab031bd573f4d642 (patch) | |
tree | f402ce1e0f6cf503b34e83a5cfa43327d0bef1b9 /src/mesa/drivers/dri/nouveau/nv10_state_fb.c | |
parent | aceb5b3277e83b17da57b14c4c1a005032bf2ecc (diff) |
dri/nouveau: Kill a bunch of ternary operators.
Diffstat (limited to 'src/mesa/drivers/dri/nouveau/nv10_state_fb.c')
-rw-r--r-- | src/mesa/drivers/dri/nouveau/nv10_state_fb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nv10_state_fb.c b/src/mesa/drivers/dri/nouveau/nv10_state_fb.c index 63f5f74ff5..056054e964 100644 --- a/src/mesa/drivers/dri/nouveau/nv10_state_fb.c +++ b/src/mesa/drivers/dri/nouveau/nv10_state_fb.c @@ -27,9 +27,9 @@ #include "nouveau_driver.h" #include "nouveau_context.h" #include "nouveau_fbo.h" +#include "nouveau_util.h" #include "nv_object.xml.h" #include "nv10_3d.xml.h" -#include "nouveau_util.h" #include "nv10_driver.h" static inline unsigned @@ -205,7 +205,7 @@ nv10_emit_zclear(struct gl_context *ctx, int emit) if (nfb->hierz.bo) { BEGIN_RING(chan, celsius, NV17_3D_ZCLEAR_ENABLE, 2); - OUT_RING(chan, nctx->hierz.clear_blocked ? 0 : 1); + OUT_RINGb(chan, !nctx->hierz.clear_blocked); OUT_RING(chan, nfb->hierz.clear_value | (nctx->hierz.clear_seq & 0xff)); } else { |