From: Brian Date: Tue, 19 Feb 2008 23:28:25 +0000 (-0700) Subject: gallium: initialize the killmask register to zero before running shader X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=75a4524f2c6444b27055e539da052827670b62cf;p=mesa.git gallium: initialize the killmask register to zero before running shader This fixes mysterious missing fragments when running with SSE. --- diff --git a/src/gallium/drivers/softpipe/sp_fs_sse.c b/src/gallium/drivers/softpipe/sp_fs_sse.c index b18772f4e6d..53050b78230 100644 --- a/src/gallium/drivers/softpipe/sp_fs_sse.c +++ b/src/gallium/drivers/softpipe/sp_fs_sse.c @@ -124,6 +124,9 @@ fs_sse_run( struct sp_fragment_shader *base, (float)quad->x0, (float)quad->y0, machine->Temps); + /* init kill mask */ + machine->Temps[TGSI_EXEC_TEMP_KILMASK_I].xyzw[TGSI_EXEC_TEMP_KILMASK_C].u[0] = 0x0; + shader->func( machine->Inputs, machine->Outputs, machine->Consts,