projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4bef357
)
llvmpipe: added comment about lookup-tables vs. computation
author
Brian Paul
<brianp@vmware.com>
Fri, 15 Jan 2010 18:26:35 +0000
(11:26 -0700)
committer
Brian Paul
<brianp@vmware.com>
Fri, 15 Jan 2010 18:26:35 +0000
(11:26 -0700)
src/gallium/drivers/llvmpipe/lp_rast_tri.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/llvmpipe/lp_rast_tri.c
b/src/gallium/drivers/llvmpipe/lp_rast_tri.c
index 9c3f699ec7135d02b7e188d0f8f9d793df9c981c..92769beee1fae8848056100d7ceb4d79828df387 100644
(file)
--- a/
src/gallium/drivers/llvmpipe/lp_rast_tri.c
+++ b/
src/gallium/drivers/llvmpipe/lp_rast_tri.c
@@
-40,6
+40,9
@@
* Map an index in [0,15] to an x,y position, multiplied by 4.
* This is used to get the position of each subtile in a 4x4
* grid of edge step values.
+ * Note: we can use some bit twiddling to compute these values instead
+ * of using a look-up table, but there's no measurable performance
+ * difference.
*/
static const int pos_table4[16][2] = {
{ 0, 0 },