rhi: RenderCommand resolve m_rhiShader at submission time


Resolving the rhiShader while updating the RenderCommand which happens
prior to submission time can lead to creating pipelines referencing outdated
rhi shaders.

This is what used to happen:
-> Shader with id shaderId is dirty
// Jobs
-> Resolve (outdated) m_rhiShader for command based on shaderId
-> Rebuild new shader code for shader with id shaderId
// Submission
-> Create new RHIShader for dirty shader and shaderId
   (command still references the old one)
-> Build pipeline using outdated m_rhiShader

This is what would now happen:
-> Shader with id shaderId is dirty
// Jobs
-> Rebuild new shader code for shader with id shaderId
// Submission
-> Create new RHIShader for dirty shader and shaderId
-> Resolve (up to date) m_rhiShader for command based on shaderId
-> Build pipeline using correct m_rhiShader

Change-Id: Icb0b93228da409d1b3945f5f32480a344295e60f
Reviewed-by: Mike Krus <mike.krus@kdab.com>
commit959f3a35a089f5380ce9a84408dd8ecd090c633f
parent040866a8efa52d1a879233edf917f3c9347b93d0
authorPaul Lemire <paul.lemire@kdab.com>
committerPaul Lemire <paul.lemire@kdab.com>
commit timeSun, 13 Sep 2020 21:50:21 +0200