diff options
author | Brian Paul <brianp@vmware.com> | 2010-01-08 14:49:34 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2010-01-08 14:49:34 -0700 |
commit | f4321fbd961a0a891c7f40b16efc61aa791e03a9 (patch) | |
tree | 9749777e97806cb35fefcd128cc549bb3753e737 /progs/xdemos/pbdemo.c | |
parent | 5208af7853989c30bea6ce8c4ac659a2f2304225 (diff) |
llvmpipe: optimize case when all four pixels are inside the triangle
When the incoming c0,c1,c2 values are equal to INT_MIN it means that
all pixels are inside the triangle. Thus we can skip the detailed
pixel inside/outside triangle tests. Use the new lp_build_if()/endif()
functions to generate the branching code.
The code is disabled ATM however because it's actually a little slower
than the original code. A little more tuning may fix that though...
Diffstat (limited to 'progs/xdemos/pbdemo.c')
0 files changed, 0 insertions, 0 deletions