diff options
author | Keith Whitwell <[email protected]> | 2009-10-19 12:24:18 +0100 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2009-10-19 13:36:55 +0100 |
commit | 0580079864c41c236a4167a1543b1a2fc5090362 (patch) | |
tree | c827b06e5cae79145178ca4fb580c7830976dfb7 /src/gallium/drivers/llvmpipe/lp_rast.h | |
parent | 301c1494b27ad92ff1237909f9c98c1660be8fc1 (diff) |
llvmpipe: fixed-point rasterization
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_rast.h')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_rast.h | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_rast.h b/src/gallium/drivers/llvmpipe/lp_rast.h index f371b709df3..97250071199 100644 --- a/src/gallium/drivers/llvmpipe/lp_rast.h +++ b/src/gallium/drivers/llvmpipe/lp_rast.h @@ -39,7 +39,10 @@ struct lp_rasterizer; struct pipe_screen; -#define TILESIZE 64 +#define FIXED_ORDER 4 +#define FIXED_ONE (1<<FIXED_ORDER) +#define TILE_ORDER 6 +#define TILESIZE (1<<TILE_ORDER) struct lp_rast_state { @@ -84,29 +87,29 @@ struct lp_rast_triangle { int maxy; /* one-pixel sized trivial accept offsets for each plane */ - float ei1; - float ei2; - float ei3; + int ei1; + int ei2; + int ei3; /* one-pixel sized trivial reject offsets for each plane */ - float eo1; - float eo2; - float eo3; + int eo1; + int eo2; + int eo3; /* y deltas for vertex pairs */ - float dy12; - float dy23; - float dy31; + int dy12; + int dy23; + int dy31; /* x deltas for vertex pairs */ - float dx12; - float dx23; - float dx31; + int dx12; + int dx23; + int dx31; /* edge function values at minx,miny ?? */ - float c1; - float c2; - float c3; + int c1; + int c2; + int c3; /* XXX: this is only used inside lp_setup_tri.c, don't really * need it here: |