llvmpipe: scale up bounding box planes to subpixel precision
authorRoland Scheidegger <sroland@vmware.com>
Sun, 3 Jan 2016 00:13:45 +0000 (01:13 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Wed, 13 Jan 2016 02:34:59 +0000 (03:34 +0100)
commit16530fdc82cde61495c66abe704e88d7752dfdbf
tree41651962511c1c338736a0c98267a209bf582a34
parent0298f5aca761da1fdb7ded4d8943b2a7f9f4b36f
llvmpipe: scale up bounding box planes to subpixel precision

Otherwise some planes we get in rasterization have subpixel precision, others
not. Doesn't matter so far, but will soon. (OpenGL actually supports viewports
with subpixel accuracy, so could even do bounding box calcs with that).

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/drivers/llvmpipe/lp_setup_line.c
src/gallium/drivers/llvmpipe/lp_setup_point.c
src/gallium/drivers/llvmpipe/lp_setup_tri.c