mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
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:
parent
dbd4934441
commit
b704c9a75b
1 changed files with 9 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue