summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_program.c
diff options
context:
space:
mode:
authorRoland Scheidegger <sroland@vmware.com>2014-01-21 17:47:08 +0100
committerRoland Scheidegger <sroland@vmware.com>2014-01-21 17:49:02 +0100
commite23e4f67bed51a8dfd182eae6c7e8e23a7d2cb0e (patch)
tree0d29ffd683c4e81212bca8d643bf17c873a4da1d /src/mesa/drivers/dri/i965/brw_program.c
parentad04e396faaddce926ee1146f0da12b30aee7b87 (diff)
downloadexternal_mesa3d-e23e4f67bed51a8dfd182eae6c7e8e23a7d2cb0e.zip
external_mesa3d-e23e4f67bed51a8dfd182eae6c7e8e23a7d2cb0e.tar.gz
external_mesa3d-e23e4f67bed51a8dfd182eae6c7e8e23a7d2cb0e.tar.bz2
draw: fix points with negative w coords for d3d style point clipping
Even with depth clipping disabled, vertices which have negative w coords must be discarded. And since we don't have a proper guardband implementation yet (relying on driver to handle all values except infs/nans in rasterization for such points) we need to kill them off manually (as they can end up with coordinates inside viewport otherwise). v2: use 0.0f instead of 0 (spotted by Brian). Reviewed-by: Jose Fonseca <jfonseca@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_program.c')
0 files changed, 0 insertions, 0 deletions