diff options
author | Brian Paul <[email protected]> | 2008-08-24 17:48:55 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-08-24 17:48:55 -0600 |
commit | 4f25420bdd834e81a3e22733304efc5261c2998a (patch) | |
tree | f60a6221f9ced3f479615094715f25ad32735932 /src/gallium/drivers/i965simple/brw_cc.c | |
parent | ec7415642d7eb192164e7a513198b86756de484c (diff) |
gallium: refactor/replace p_util.h with util/u_memory.h and util/u_math.h
Also, rename p_tile.[ch] to u_tile.[ch]
Diffstat (limited to 'src/gallium/drivers/i965simple/brw_cc.c')
-rw-r--r-- | src/gallium/drivers/i965simple/brw_cc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/i965simple/brw_cc.c b/src/gallium/drivers/i965simple/brw_cc.c index 337e4f95f69..79d4150383a 100644 --- a/src/gallium/drivers/i965simple/brw_cc.c +++ b/src/gallium/drivers/i965simple/brw_cc.c @@ -29,7 +29,8 @@ * Keith Whitwell <[email protected]> */ -#include "pipe/p_util.h" +#include "util/u_math.h" +#include "util/u_memory.h" #include "brw_context.h" #include "brw_state.h" @@ -232,8 +233,7 @@ static void upload_cc_unit( struct brw_context *brw ) cc.cc3.alpha_test_func = brw_translate_compare_func(brw->attribs.DepthStencil->alpha.func); - UNCLAMPED_FLOAT_TO_UBYTE(cc.cc7.alpha_ref.ub[0], - brw->attribs.DepthStencil->alpha.ref); + cc.cc7.alpha_ref.ub[0] = float_to_ubyte(brw->attribs.DepthStencil->alpha.ref); cc.cc3.alpha_test_format = BRW_ALPHATEST_FORMAT_UNORM8; } |