[Mesa-dev] [PATCH v2 11/20] st/mesa: add compute shader states

Ilia Mirkin imirkin at alum.mit.edu
Sat Feb 6 23:59:41 UTC 2016


On Sat, Feb 6, 2016 at 6:53 PM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
> On Sat, Feb 6, 2016 at 5:04 PM, Samuel Pitoiset
> <samuel.pitoiset at gmail.com> wrote:
>> @@ -92,6 +95,7 @@ st_use_program(struct gl_context *ctx, struct gl_shader_program *shProg)
>>     st->dirty.st |= ST_NEW_GEOMETRY_PROGRAM;
>>     st->dirty.st |= ST_NEW_TESSCTRL_PROGRAM;
>>     st->dirty.st |= ST_NEW_TESSEVAL_PROGRAM;
>> +   st->dirty_cp.st |= ST_NEW_COMPUTE_PROGRAM;
>>  }
>
> No need to cross-dirty both pipelines... I think you can say like if
> shProg->Stage == COMPUTE: do dirty_cp, otherwise do dirty.

Ignore this comment.


More information about the mesa-dev mailing list