summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe/lp_rast.h
diff options
context:
space:
mode:
authorZack Rusin <[email protected]>2013-09-24 15:08:35 -0400
committerZack Rusin <[email protected]>2013-09-24 15:10:02 -0400
commit71ecc2cf71e678daca347bb10dd48e037ecd10af (patch)
tree2204d7aa785d0bf7b8baabd1c79e1d382f025e81 /src/gallium/drivers/llvmpipe/lp_rast.h
parent49f8fc64de4d06fd516f15cc77449d33f0b85714 (diff)
Revert "llvmpipe: increase number of subpixel bits to eight"
This reverts commit 755c11dc5e94f17097c186edaaa39d818396f14c. We agreed that this is band-aid that's not very useful and the proper solution is to rewrite the rasterization algo so that it operates on 64 bit values. Signed-off-by: Zack Rusin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_rast.h')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_rast.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_rast.h b/src/gallium/drivers/llvmpipe/lp_rast.h
index 39ff6af327f..c57f2ea11de 100644
--- a/src/gallium/drivers/llvmpipe/lp_rast.h
+++ b/src/gallium/drivers/llvmpipe/lp_rast.h
@@ -46,20 +46,10 @@ struct lp_scene;
struct lp_fence;
struct cmd_bin;
-#define FIXED_TYPE_WIDTH 32
/** For sub-pixel positioning */
-#define FIXED_ORDER 8
+#define FIXED_ORDER 4
#define FIXED_ONE (1<<FIXED_ORDER)
-/** Maximum length of an edge in a primitive in pixels.
- * If the framebuffer is large we have to think about fixed-point
- * integer overflow. Coordinates need ((FIXED_TYPE_WIDTH/2) - 1) bits
- * to be able to fit product of two such coordinates inside
- * FIXED_TYPE_WIDTH, any larger and we could overflow a
- * FIXED_TYPE_WIDTH_-bit int.
- */
-#define MAX_FIXED_LENGTH (1 << (((FIXED_TYPE_WIDTH/2) - 1) - FIXED_ORDER))
-
/* Rasterizer output size going to jit fs, width/height */
#define LP_RASTER_BLOCK_SIZE 4