All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] nv40: don't crash on empty fragment program
@ 2010-01-17 21:35 Luca Barbieri
       [not found] ` <1263764160-8891-1-git-send-email-luca-Ukmtq+NC3rhBHFWNQifrYwC/G2K4zDHf@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Luca Barbieri @ 2010-01-17 21:35 UTC (permalink / raw)
  To: mesa3d-dev-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
  Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW, Luca Barbieri

---
 src/gallium/drivers/nv40/nv40_fragprog.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/nv40/nv40_fragprog.c b/src/gallium/drivers/nv40/nv40_fragprog.c
index 1237066..209d211 100644
--- a/src/gallium/drivers/nv40/nv40_fragprog.c
+++ b/src/gallium/drivers/nv40/nv40_fragprog.c
@@ -843,7 +843,8 @@ nv40_fragprog_translate(struct nv40_context *nv40,
 	fp->fp_control |= fpc->num_regs << NV40TCL_FP_CONTROL_TEMP_COUNT_SHIFT;
 
 	/* Terminate final instruction */
-	fp->insn[fpc->inst_offset] |= 0x00000001;
+	if(fp->insn)
+                fp->insn[fpc->inst_offset] |= 0x00000001;
 
 	/* Append NOP + END instruction, may or may not be necessary. */
 	fpc->inst_offset = fp->insn_len;
-- 
1.6.3.3

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-01-18 18:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-17 21:35 [PATCH 1/2] nv40: don't crash on empty fragment program Luca Barbieri
     [not found] ` <1263764160-8891-1-git-send-email-luca-Ukmtq+NC3rhBHFWNQifrYwC/G2K4zDHf@public.gmane.org>
2010-01-17 21:36   ` [PATCH 2/2] st: don't assert " Luca Barbieri
2010-01-18 18:01     ` Brian Paul
     [not found]       ` <4B54A208.10803-pghWNbHTmq7QT0dZR+AlfA@public.gmane.org>
2010-01-18 18:15         ` [Mesa3d-dev] " Luca Barbieri
2010-01-18 18:26           ` Brian Paul
     [not found]             ` <4B54A7C6.4060402-pghWNbHTmq7QT0dZR+AlfA@public.gmane.org>
2010-01-18 18:30               ` [Mesa3d-dev] " Luca Barbieri
2010-01-18 18:27           ` Roland Scheidegger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.