mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 06:40:08 +01:00
iris: untested SAMPLER_STATE pin BO fix
This commit is contained in:
parent
de782e5b39
commit
149408a360
1 changed files with 4 additions and 0 deletions
|
|
@ -2354,6 +2354,10 @@ iris_upload_render_state(struct iris_context *ice,
|
|||
!ice->shaders.prog[stage])
|
||||
continue;
|
||||
|
||||
struct pipe_resource *res = ice->state.sampler_table_resource[stage];
|
||||
if (res)
|
||||
iris_use_pinned_bo(batch, iris_resource_bo(res), false);
|
||||
|
||||
iris_emit_cmd(batch, GENX(3DSTATE_SAMPLER_STATE_POINTERS_VS), ptr) {
|
||||
ptr._3DCommandSubOpcode = 43 + stage;
|
||||
ptr.PointertoVSSamplerState = ice->state.sampler_table_offset[stage];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue