Mesa (master): mesa: fix incorrect opcode in save_BlendFunci()

Brian Paul brianp at kemper.freedesktop.org
Tue Oct 20 19:59:46 UTC 2015


Module: Mesa
Branch: master
Commit: e24d04e436ed48d4a0aac90590cbaa40da936208
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e24d04e436ed48d4a0aac90590cbaa40da936208

Author: Brian Paul <brianp at vmware.com>
Date:   Thu Oct 15 08:43:02 2015 -0600

mesa: fix incorrect opcode in save_BlendFunci()

Fixes assertion failure with new piglit
arb_draw_buffers_blend-state_set_get test.

Cc: mesa-stable at lists.freedesktop.org

Reviewed-by: Jose Fonseca <jfonseca at vmware.com>

---

 src/mesa/main/dlist.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/main/dlist.c b/src/mesa/main/dlist.c
index fdb839c..2b65b2e 100644
--- a/src/mesa/main/dlist.c
+++ b/src/mesa/main/dlist.c
@@ -1400,7 +1400,7 @@ save_BlendFunci(GLuint buf, GLenum sfactor, GLenum dfactor)
    GET_CURRENT_CONTEXT(ctx);
    Node *n;
    ASSERT_OUTSIDE_SAVE_BEGIN_END_AND_FLUSH(ctx);
-   n = alloc_instruction(ctx, OPCODE_BLEND_FUNC_SEPARATE_I, 3);
+   n = alloc_instruction(ctx, OPCODE_BLEND_FUNC_I, 3);
    if (n) {
       n[1].ui = buf;
       n[2].e = sfactor;




More information about the mesa-commit mailing list