http://bugs.freedesktop.org/show_bug.cgi?id=27141





--- Comment #2 from Chris Rankin <ranki...@googlemail.com>  2010-03-18 07:47:02 
PST ---
The problem happens when destroying the GLContext:

- we call _mesa_free_context_data(), which sets ctx->DrawBuffer = NULL
- _mesa_free_context_data() then calls _mesa_free_texture_data()
- _mesa_free_texture_data() calls r600DeleteTexture()
- r600DeleteTexture() calls radeonFlush() via radeon_firevertices()
- radeonFlush() tries to dereference ctx->DrawBuffer, which has just been set
to NULL
- BANG!

Adding a simple (ctx->DrawBuffer != NULL) check to radeonFlush() makes 43 of
the vertProg1 piglit tests pass, with 2 failures:

  Program: RSQ test 2 (reciprocal square root of negative value)
  Expected color: -1, 0.1, 0.447, 1
  Observed color: 0, 0, 0, 0

  Program: LIT test 2 (degenerate case: 0 ^ 0 -> 1)
  Expected color: 1, 0.65, 1, 1
  Observed color: 1, 0.65098, 0, 1


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to