mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 20:48:08 +02:00
SIMD comments
This commit is contained in:
parent
284efcfc27
commit
ac5523a9c3
2 changed files with 5 additions and 0 deletions
|
|
@ -23,6 +23,10 @@ alpha_test_quad(struct quad_stage *qs, struct quad_header *quad)
|
|||
quad->mask = 0x0;
|
||||
break;
|
||||
case PIPE_FUNC_LESS:
|
||||
/*
|
||||
* If quad->mask were an array [4] we could do this SIMD-style:
|
||||
* quad->mask &= (quad->outputs.color[3] <= vec4(ref));
|
||||
*/
|
||||
for (j = 0; j < QUAD_SIZE; j++) {
|
||||
if (quad->mask & (1 << j)) {
|
||||
if (quad->outputs.color[3][j] >= ref) {
|
||||
|
|
|
|||
|
|
@ -54,6 +54,7 @@ depth_test_quad(struct quad_stage *qs, struct quad_header *quad)
|
|||
break;
|
||||
case PIPE_FUNC_LESS:
|
||||
/* Note this is pretty much a single sse or cell instruction.
|
||||
* Like this: quad->mask &= (quad->outputs.depth < zzzz);
|
||||
*/
|
||||
for (j = 0; j < QUAD_SIZE; j++) {
|
||||
if (quad->outputs.depth[j] < zzzz[j])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue