intel/blorp: Split out ps specific sampler state into a separate function
The compute path will use blorp_emit_sampler_state, whereas the render path will use blorp_emit_sampler_state_ps. Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11564>
This commit is contained in:
@@ -640,6 +640,14 @@ blorp_emit_sampler_state(struct blorp_batch *batch)
|
||||
#endif
|
||||
}
|
||||
|
||||
return offset;
|
||||
}
|
||||
|
||||
UNUSED static uint32_t
|
||||
blorp_emit_sampler_state_ps(struct blorp_batch *batch)
|
||||
{
|
||||
uint32_t offset = blorp_emit_sampler_state(batch);
|
||||
|
||||
#if GFX_VER >= 7
|
||||
blorp_emit(batch, GENX(3DSTATE_SAMPLER_STATE_POINTERS_PS), ssp) {
|
||||
ssp.PointertoPSSamplerState = offset;
|
||||
@@ -1322,7 +1330,7 @@ blorp_emit_pipeline(struct blorp_batch *batch,
|
||||
#endif
|
||||
|
||||
if (params->src.enabled)
|
||||
blorp_emit_sampler_state(batch);
|
||||
blorp_emit_sampler_state_ps(batch);
|
||||
|
||||
blorp_emit_3dstate_multisample(batch, params);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user