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/nouveau_util.h | |
parent | aceb5b3277e83b17da57b14c4c1a005032bf2ecc (diff) |
dri/nouveau: Kill a bunch of ternary operators.
Diffstat (limited to 'src/mesa/drivers/dri/nouveau/nouveau_util.h')
-rw-r--r-- | src/mesa/drivers/dri/nouveau/nouveau_util.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_util.h b/src/mesa/drivers/dri/nouveau/nouveau_util.h index 8df8867d14..6d01934dad 100644 --- a/src/mesa/drivers/dri/nouveau/nouveau_util.h +++ b/src/mesa/drivers/dri/nouveau/nouveau_util.h @@ -164,6 +164,12 @@ get_viewport_translate(struct gl_context *ctx, float a[4]) } static inline void +OUT_RINGb(struct nouveau_channel *chan, GLboolean x) +{ + OUT_RING(chan, x ? 1 : 0); +} + +static inline void OUT_RINGm(struct nouveau_channel *chan, float m[16]) { int i, j; |