• Home
  • Raw
  • Download

Lines Matching refs:hstate

171       struct dd_state *hstate = CALLOC_STRUCT(dd_state); \
173 if (!hstate) \
175 hstate->cso = pipe->create_##name##_state(pipe, state); \
176 hstate->state.shortname = *state; \
177 return hstate; \
186 struct dd_state *hstate = state; \
188 dctx->draw_state.shortname = hstate; \
189 pipe->bind_##name##_state(pipe, hstate ? hstate->cso : NULL); \
198 struct dd_state *hstate = state; \
200 pipe->delete_##name##_state(pipe, hstate->cso); \
201 FREE(hstate); \
248 struct dd_state *hstate = CALLOC_STRUCT(dd_state); in dd_context_create_vertex_elements_state() local
250 if (!hstate) in dd_context_create_vertex_elements_state()
252 hstate->cso = pipe->create_vertex_elements_state(pipe, num_elems, elems); in dd_context_create_vertex_elements_state()
253 memcpy(hstate->state.velems.velems, elems, sizeof(elems[0]) * num_elems); in dd_context_create_vertex_elements_state()
254 hstate->state.velems.count = num_elems; in dd_context_create_vertex_elements_state()
255 return hstate; in dd_context_create_vertex_elements_state()
272 struct dd_state *hstate = state; \ in DD_CSO_BIND()
274 dctx->draw_state.shaders[PIPE_SHADER_##NAME] = hstate; \ in DD_CSO_BIND()
275 pipe->bind_##name##_state(pipe, hstate ? hstate->cso : NULL); \ in DD_CSO_BIND()
283 struct dd_state *hstate = state; \
285 pipe->delete_##name##_state(pipe, hstate->cso); \
286 if (hstate->state.shader.type == PIPE_SHADER_IR_TGSI) \
287 tgsi_free_tokens(hstate->state.shader.tokens); \
288 FREE(hstate); \
297 struct dd_state *hstate = CALLOC_STRUCT(dd_state); \
299 if (!hstate) \
301 hstate->cso = pipe->create_##name##_state(pipe, state); \
302 hstate->state.shader = *state; \
303 if (hstate->state.shader.type == PIPE_SHADER_IR_TGSI) \
304 hstate->state.shader.tokens = tgsi_dup_tokens(state->tokens); \
305 return hstate; \
321 struct dd_state *hstate = CALLOC_STRUCT(dd_state); local
323 if (!hstate)
325 hstate->cso = pipe->create_compute_state(pipe, state);
327 hstate->state.shader.type = state->ir_type;
330 hstate->state.shader.tokens = tgsi_dup_tokens(state->prog);
332 return hstate;