summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-08-19 13:14:59 -0600
committerJosé Fonseca <[email protected]>2009-08-29 09:21:36 +0100
commit03b388e1c9b4ffbfe849477df2c98ddd8c7eac18 (patch)
tree8ee24b28651b4229272b2c7bcc7c485982e6e3d2 /src
parent0f6c621aeeb171b5c30c2875b4cea383a19ac8b5 (diff)
llvmpipe: frag shader comments
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_state_fs.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.c b/src/gallium/drivers/llvmpipe/lp_state_fs.c
index 1c00c2c707e..ffcc8336b12 100644
--- a/src/gallium/drivers/llvmpipe/lp_state_fs.c
+++ b/src/gallium/drivers/llvmpipe/lp_state_fs.c
@@ -134,11 +134,11 @@ shader_generate(struct llvmpipe_screen *screen,
unsigned chan;
type.value = 0;
- type.floating = TRUE;
- type.sign = TRUE;
- type.norm = FALSE;
- type.width = 32;
- type.length = 4;
+ type.floating = TRUE; /* floating point values */
+ type.sign = TRUE; /* values are signed */
+ type.norm = FALSE; /* values are not limited to [0,1] or [-1,1] */
+ type.width = 32; /* 32-bit float */
+ type.length = 4; /* 4 element per vector */
elem_type = lp_build_elem_type(type);
vec_type = lp_build_vec_type(type);