Re: [Mesa-dev] [PATCH] gallivm: exit emit_fetch_constat() when no constants

2015-11-02 Thread Roland Scheidegger
Am 02.11.2015 um 15:56 schrieb Oded Gabbay: > If we don't have any constants, just exit emit_fetch_constat() and don't > call LLVM functions. > > This also prevents a crash that happens when we emit the prologue of the > fragment shader when DEBUG_EXECUTION is set to 1 and we don't have > constant

[Mesa-dev] [PATCH] gallivm: exit emit_fetch_constat() when no constants

2015-11-02 Thread Oded Gabbay
If we don't have any constants, just exit emit_fetch_constat() and don't call LLVM functions. This also prevents a crash that happens when we emit the prologue of the fragment shader when DEBUG_EXECUTION is set to 1 and we don't have constants (e.g. arb_blend_func_extended-fbo-extended-blend test