llvmpipe: comments about blend generator
This commit is contained in:
parent
f586d9546b
commit
8329e59958
|
@ -45,6 +45,12 @@
|
||||||
#include "lp_bld_debug.h"
|
#include "lp_bld_debug.h"
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generate blending code according to blend->base state.
|
||||||
|
* The blend function will look like:
|
||||||
|
* blend(mask, src_color, constant color, dst_color)
|
||||||
|
* dst_color will be modified and contain the result of the blend func.
|
||||||
|
*/
|
||||||
static void
|
static void
|
||||||
blend_generate(struct llvmpipe_screen *screen,
|
blend_generate(struct llvmpipe_screen *screen,
|
||||||
struct lp_blend_state *blend)
|
struct lp_blend_state *blend)
|
||||||
|
@ -69,11 +75,11 @@ blend_generate(struct llvmpipe_screen *screen,
|
||||||
unsigned i;
|
unsigned i;
|
||||||
|
|
||||||
type.value = 0;
|
type.value = 0;
|
||||||
type.floating = FALSE;
|
type.floating = FALSE; /* values are integers */
|
||||||
type.sign = FALSE;
|
type.sign = FALSE; /* values are unsigned */
|
||||||
type.norm = TRUE;
|
type.norm = TRUE; /* values are in [0,1] or [-1,1] */
|
||||||
type.width = 8;
|
type.width = 8; /* 8-bit ubyte values */
|
||||||
type.length = 16;
|
type.length = 16; /* 16 elements per vector */
|
||||||
|
|
||||||
vec_type = lp_build_vec_type(type);
|
vec_type = lp_build_vec_type(type);
|
||||||
int_vec_type = lp_build_int_vec_type(type);
|
int_vec_type = lp_build_int_vec_type(type);
|
||||||
|
|
Loading…
Reference in New Issue