Displaying 3 results from an estimated 3 matches for "update_program".
2015 Aug 27
2
gallium state tracker calls calloc for 0 sizes arrays ?
...ct ureg_src *)
calloc(program->num_immediates, sizeof(struct ureg_src));
With the regular glibc malloc these both succeed as it actually
returns a valid memory address (posix says it may also return NULL)
I believe that the fragment program in question comes from:
src/mesa/main/state.c update_program() and then from the
else if (ctx->FragmentProgram._MaintainTexEnvProgram) {
/* Use fragment program generated from fixed-function state */
}
block.
Interestingly enough if I allow malloc(0) to proceed from ElectricFence,
then the glretrace runs fine, and even renders correctly...
2015 Aug 27
2
[Mesa-dev] gallium state tracker calls calloc for 0 sizes arrays ?
...eof(struct ureg_src));
>>
>> With the regular glibc malloc these both succeed as it actually
>> returns a valid memory address (posix says it may also return NULL)
>>
>> I believe that the fragment program in question comes from:
>>
>> src/mesa/main/state.c update_program() and then from the
>>
>> else if (ctx->FragmentProgram._MaintainTexEnvProgram) {
>> /* Use fragment program generated from fixed-function state */
>>
>> }
>>
>> block.
>>
>> Interestingly enough if I allow malloc(0) to proceed...
2015 Aug 27
3
[Mesa-dev] gallium state tracker calls calloc for 0 sizes arrays ?
...With the regular glibc malloc these both succeed as it actually
>>>> returns a valid memory address (posix says it may also return NULL)
>>>>
>>>> I believe that the fragment program in question comes from:
>>>>
>>>> src/mesa/main/state.c update_program() and then from the
>>>>
>>>> else if (ctx->FragmentProgram._MaintainTexEnvProgram) {
>>>> /* Use fragment program generated from fixed-function state */
>>>>
>>>> }
>>>>
>>>> block.
>>>&g...