Lines Matching refs:state
64 /* free depthstencil_disable state */
70 for (shader = 0; shader < ARRAY_SIZE(svga->state.hw_draw.constbuf); shader++) {
71 for (i = 0; i < ARRAY_SIZE(svga->state.hw_draw.constbuf[0]); i++) {
72 pipe_resource_reference(&svga->state.hw_draw.constbuf[shader][i], NULL);
202 /* init misc state */
275 /* Avoid shortcircuiting state with initial value of zero.
277 memset(&svga->state.hw_clear, 0xcd, sizeof(svga->state.hw_clear));
278 memset(&svga->state.hw_clear.framebuffer, 0x0,
279 sizeof(svga->state.hw_clear.framebuffer));
280 memset(&svga->state.hw_clear.rtv, 0, sizeof(svga->state.hw_clear.rtv));
281 svga->state.hw_clear.num_rendertargets = 0;
282 svga->state.hw_clear.dsv = NULL;
284 memset(&svga->state.hw_draw, 0xcd, sizeof(svga->state.hw_draw));
285 memset(&svga->state.hw_draw.views, 0x0, sizeof(svga->state.hw_draw.views));
286 memset(&svga->state.hw_draw.num_samplers, 0,
287 sizeof(svga->state.hw_draw.num_samplers));
288 memset(&svga->state.hw_draw.num_sampler_views, 0,
289 sizeof(svga->state.hw_draw.num_sampler_views));
290 memset(svga->state.hw_draw.sampler_views, 0,
291 sizeof(svga->state.hw_draw.sampler_views));
292 svga->state.hw_draw.num_views = 0;
293 svga->state.hw_draw.num_backed_views = 0;
294 svga->state.hw_draw.rasterizer_discard = FALSE;
297 svga->state.hw_draw.uavSpliceIndex = -1;
298 svga->state.hw_draw.num_uavs = 0;
299 svga->state.hw_draw.num_cs_uavs = 0;
302 svga->state.hw_draw.vs = NULL;
303 svga->state.hw_draw.gs = NULL;
304 svga->state.hw_draw.fs = NULL;
305 svga->state.hw_draw.tcs = NULL;
306 svga->state.hw_draw.tes = NULL;
309 memset(svga->state.hw_draw.constbuf, 0,
310 sizeof(svga->state.hw_draw.constbuf));
311 memset(svga->state.hw_draw.default_constbuf_size, 0,
312 sizeof(svga->state.hw_draw.default_constbuf_size));
313 memset(svga->state.hw_draw.enabled_constbufs, 0,
314 sizeof(svga->state.hw_draw.enabled_constbufs));
315 memset(svga->state.hw_draw.enabled_rawbufs, 0,
316 sizeof(svga->state.hw_draw.enabled_rawbufs));
317 memset(svga->state.hw_draw.rawbufs, 0,
318 sizeof(svga->state.hw_draw.rawbufs));
319 svga->state.hw_draw.ib = NULL;
320 svga->state.hw_draw.num_vbuffers = 0;
321 memset(svga->state.hw_draw.vbuffers, 0,
322 sizeof(svga->state.hw_draw.vbuffers));
323 svga->state.hw_draw.const0_buffer = NULL;
324 svga->state.hw_draw.const0_handle = NULL;
329 i < ARRAY_SIZE(svga->state.hw_draw.rawbufs[shader]); i++) {
330 svga->state.hw_draw.rawbufs[shader][i].srvid = SVGA3D_INVALID_ID;
337 /* Create a no-operation blend state which we will bind whenever the
338 * requested blend state is impossible (e.g. due to having an integer
343 * matching the blend state it is replacing.
421 if (svga->state.hw_draw.const0_handle) {
422 assert(svga->state.hw_draw.const0_buffer);
424 pipe_resource_reference(&svga->state.hw_draw.const0_buffer, NULL);
425 svga->state.hw_draw.const0_handle = NULL;