llvmpipe: Use RAST_WHOLE/EDGE_TEST in more places.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 12 May 2010 16:24:34 +0000 (17:24 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 12 May 2010 16:24:34 +0000 (17:24 +0100)
src/gallium/drivers/llvmpipe/lp_jit.h
src/gallium/drivers/llvmpipe/lp_rast_priv.h
src/gallium/drivers/llvmpipe/lp_state.h
src/gallium/drivers/llvmpipe/lp_state_fs.c

index fc43d0bf5aadc1c39bc6788bf4107e7f1edcddfb..8d06e65725f7d68e5471a38209de875e8020eb39 100644 (file)
@@ -150,11 +150,6 @@ enum {
 
 
 
-/** Indexes into jit_function[] array */
-#define RAST_WHOLE 0
-#define RAST_EDGE_TEST 1
-
-
 typedef void
 (*lp_jit_frag_func)(const struct lp_jit_context *context,
                     uint32_t x,
index 0ceba209e062045a73b14d8a0cc8f3d9bf8234eb..efc013ff3f04bc053826fe759fa7e8dc7b0d3970 100644 (file)
@@ -33,6 +33,7 @@
 #include "gallivm/lp_bld_debug.h"
 #include "lp_rast.h"
 #include "lp_scene.h"
+#include "lp_state.h"
 #include "lp_texture.h"
 #include "lp_tile_soa.h"
 #include "lp_limits.h"
index 73778449ea8812c8f2daedaac1b0567ecae75037..bae5de0cb353566efd1b7c8a9df885c70045ace8 100644 (file)
@@ -63,6 +63,11 @@ struct llvmpipe_context;
 struct lp_fragment_shader;
 
 
+/** Indexes into jit_function[] array */
+#define RAST_WHOLE 0
+#define RAST_EDGE_TEST 1
+
+
 struct lp_fragment_shader_variant_key
 {
    struct pipe_depth_state depth;
index 429aaab569c1ff572475d51e8054d95aec338ec5..ff193d61aa08fdec8d6971603f90edc6fd058ec9 100644 (file)
@@ -962,8 +962,8 @@ generate_variant(struct llvmpipe_context *lp,
 
    memcpy(&variant->key, key, sizeof *key);
 
-   generate_fragment(lp, shader, variant, 0);
-   generate_fragment(lp, shader, variant, 1);
+   generate_fragment(lp, shader, variant, RAST_WHOLE);
+   generate_fragment(lp, shader, variant, RAST_EDGE_TEST);
 
    /* TODO: most of these can be relaxed, in particular the colormask */
    variant->opaque =