summaryrefslogtreecommitdiffstats
path: root/include/c99_compat.h
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2017-12-05 09:53:56 -0500
committerRob Clark <[email protected]>2017-12-05 16:03:38 -0500
commitfd6a96635e2008d152f4bd9836a94cdaf08fb8d2 (patch)
treec2b8c85f44a868762defdcb84f6fa49678370166 /include/c99_compat.h
parent12a96aaf907ac3a64dc61943234f9bb479bef701 (diff)
mesa/st: move cloning of NIR shader for compute
Since in the NIR case, driver takes ownership of the NIR shader, we need to clone what is passed to the driver. Normally this is done as part of creating the shader variant (where is clone is anyways needed). But compute shaders have no variants, so we were cloning earlier. The problem is that after the NIR linking optimizations, we ended up cloning *before* all the lowering passes where done. So move this into st_get_cp_variant(), to make compute shaders work more like other shader stages. Signed-off-by: Rob Clark <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'include/c99_compat.h')
0 files changed, 0 insertions, 0 deletions