diff options
author | Ian Romanick <idr@us.ibm.com> | 2008-03-21 11:15:49 -0700 |
---|---|---|
committer | Ian Romanick <idr@us.ibm.com> | 2008-03-21 15:57:01 -0700 |
commit | 600499cf888fee9a91ff3106beca939ea0c7b2bd (patch) | |
tree | d517fc8e8bdf97b6ba6a781f21981ec72360679c /src/gallium/drivers/cell/ppu/cell_state_per_fragment.h | |
parent | f140062b72ee2df05020d86abdc47336262494f9 (diff) |
cell: Change code-gen for CONST_COLOR blend factor
Previously the constant color blend factor was compiled into the
generated code. This meant that the code had to be regenerated each
time the constant color was changed. This doesn't fit with the model
used in Gallium.
As-is, the code could be better. The constant color is loaded for
every quad processed, even if it is not used. Also, if a lot of (1-x)
blend factors are used, 1.0 will be loaded and reloaded into registers
many times.
Diffstat (limited to 'src/gallium/drivers/cell/ppu/cell_state_per_fragment.h')
-rw-r--r-- | src/gallium/drivers/cell/ppu/cell_state_per_fragment.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/cell/ppu/cell_state_per_fragment.h b/src/gallium/drivers/cell/ppu/cell_state_per_fragment.h index 541c3b3be0..f699247f9e 100644 --- a/src/gallium/drivers/cell/ppu/cell_state_per_fragment.h +++ b/src/gallium/drivers/cell/ppu/cell_state_per_fragment.h @@ -29,7 +29,6 @@ extern void cell_generate_depth_stencil_test(struct cell_depth_stencil_alpha_state *cdsa); extern void -cell_generate_alpha_blend(struct cell_blend_state *cb, - const struct pipe_blend_color *blend_color); +cell_generate_alpha_blend(struct cell_blend_state *cb); #endif /* CELL_STATE_PER_FRAGMENT_H */ |