Searched refs:hw_draw (Results 1 - 25 of 51) sorted by relevance

123

/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/svga/
H A Dsvga_context.c76 for (shader = 0; shader < ARRAY_SIZE(svga->state.hw_draw.constbuf); shader++) {
77 pipe_resource_reference(&svga->state.hw_draw.constbuf[shader], NULL);
250 memset(&svga->state.hw_draw, 0xcd, sizeof(svga->state.hw_draw));
251 memset(&svga->state.hw_draw.views, 0x0, sizeof(svga->state.hw_draw.views));
252 memset(&svga->state.hw_draw.num_samplers, 0,
253 sizeof(svga->state.hw_draw.num_samplers));
254 memset(&svga->state.hw_draw.num_sampler_views, 0,
255 sizeof(svga->state.hw_draw
[all...]
H A Dsvga_state_tss.c49 for (i = 0; i < ARRAY_SIZE(svga->state.hw_draw.views); i++) {
50 struct svga_hw_view_state *view = &svga->state.hw_draw.views[i];
148 svga->state.hw_draw.num_views);
161 &svga->state.hw_draw.views[i],
166 svga->state.hw_draw.num_views = svga->curr.num_sampler_views[shader];
170 const unsigned unit = svga->state.hw_draw.fs->pstipple_sampler_unit;
174 &svga->state.hw_draw.views[unit],
179 svga->state.hw_draw.num_backed_views = 0;
202 svga->state.hw_draw.num_backed_views++;
248 for (i = 0; i < svga->state.hw_draw
[all...]
H A Dsvga_state_rss.c50 STATIC_ASSERT(SVGA3D_RS_##token < ARRAY_SIZE(svga->state.hw_draw.rs)); \
51 if (svga->state.hw_draw.rs[SVGA3D_RS_##token] != value) { \
53 svga->state.hw_draw.rs[SVGA3D_RS_##token] = value; \
60 STATIC_ASSERT(SVGA3D_RS_##token < ARRAY_SIZE(svga->state.hw_draw.rs)); \
61 if (svga->state.hw_draw.rs[SVGA3D_RS_##token] != value) { \
63 svga->state.hw_draw.rs[SVGA3D_RS_##token] = value; \
304 memset(svga->state.hw_draw.rs, 0xcd, sizeof(svga->state.hw_draw.rs));
402 if (svga->state.hw_draw.blend_id != curr->id ||
403 svga->state.hw_draw
[all...]
H A Dsvga_state_sampler.c276 for (; i < svga->state.hw_draw.num_sampler_views[shader]; i++) {
285 nviews = MAX2(svga->state.hw_draw.num_sampler_views[shader], count);
287 if (count != svga->state.hw_draw.num_sampler_views[shader] ||
288 memcmp(sampler_views, svga->state.hw_draw.sampler_views[shader],
303 svga->state.hw_draw.sampler_views[shader][i];
340 svga->state.hw_draw.num_sampler_views[shader] = count;
343 &svga->state.hw_draw.sampler_views[shader][i],
352 const unsigned unit = svga->state.hw_draw.fs->pstipple_sampler_unit;
407 struct svga_shader_variant *fs = svga->state.hw_draw.fs;
426 for (; i < svga->state.hw_draw
[all...]
H A Dsvga_state_constants.c119 const struct svga_shader_variant *variant = svga->state.hw_draw.fs;
200 const struct svga_shader_variant *variant = svga->state.hw_draw.vs;
238 const struct svga_shader_variant *variant = svga->state.hw_draw.gs;
313 if (memcmp(svga->state.hw_draw.cb[shader][offset + i],
333 memcmp(svga->state.hw_draw.cb[shader][offset + j],
376 memcpy(svga->state.hw_draw.cb[shader][offset + i],
450 variant = svga->state.hw_draw.vs;
454 variant = svga->state.hw_draw.fs;
495 variant = svga->state.hw_draw.vs;
499 variant = svga->state.hw_draw
[all...]
H A Dsvga_draw.c211 if (svga->state.hw_draw.num_backed_views) {
212 for (i = 0; i < svga->state.hw_draw.num_views; i++) {
213 struct svga_hw_view_state *view = &svga->state.hw_draw.views[i];
382 const unsigned unit = svga->state.hw_draw.fs->pstipple_sampler_unit;
426 buffer = svga_buffer(svga->state.hw_draw.constbuf[shader]);
441 enabled_constbufs = svga->state.hw_draw.enabled_constbufs[shader] & ~1u;
545 for (; i < svga->state.hw_draw.num_vbuffers; i++) {
551 if (svga->state.hw_draw.layout_id != hwtnl->cmd.vdecl_layout_id) {
558 svga->state.hw_draw.layout_id = hwtnl->cmd.vdecl_layout_id;
575 if (vbuf_count != svga->state.hw_draw
[all...]
H A Dsvga_state_gs.c149 if (svga->state.hw_draw.gs != NULL) {
157 svga->state.hw_draw.gs = NULL;
202 if (variant != svga->state.hw_draw.gs) {
210 svga->state.hw_draw.gs = variant;
H A Dsvga_state_fs.c376 if (!svga->state.hw_draw.fs)
381 svga->state.hw_draw.fs->gb_shader,
387 svga->state.hw_draw.fs->gb_shader,
388 svga->state.hw_draw.fs->id);
391 svga->state.hw_draw.fs->gb_shader);
424 if (svga->state.hw_draw.fs) {
430 svga->state.hw_draw.fs = NULL;
456 if (variant != svga->state.hw_draw.fs) {
464 svga->state.hw_draw.fs = variant;
H A Dsvga_pipe_vertex.c307 if (velems->id == svga->state.hw_draw.layout_id)
308 svga->state.hw_draw.layout_id = SVGA3D_INVALID_ID;
327 pipe_resource_reference(&svga->state.hw_draw.ib, NULL);
329 for (i = 0; i < svga->state.hw_draw.num_vbuffers; i++)
330 pipe_resource_reference(&svga->state.hw_draw.vbuffers[i], NULL);
H A Dsvga_pipe_fs.c101 if (variant == svga->state.hw_draw.fs) {
108 svga->state.hw_draw.fs = NULL;
H A Dsvga_pipe_gs.c113 if (variant == svga->state.hw_draw.gs) {
120 svga->state.hw_draw.gs = NULL;
H A Dsvga_state_vs.c222 if (svga->state.hw_draw.vs) {
223 gbshader = svga->state.hw_draw.vs->gb_shader;
224 shaderId = svga->state.hw_draw.vs->id;
398 if (variant != svga->state.hw_draw.vs) {
408 svga->state.hw_draw.vs = variant;
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/svga/
H A Dsvga_context.c77 for (shader = 0; shader < ARRAY_SIZE(svga->state.hw_draw.constbuf); shader++) {
78 for (i = 0; i < ARRAY_SIZE(svga->state.hw_draw.constbuf[0]); i++) {
79 pipe_resource_reference(&svga->state.hw_draw.constbuf[shader][i], NULL);
266 memset(&svga->state.hw_draw, 0xcd, sizeof(svga->state.hw_draw));
267 memset(&svga->state.hw_draw.views, 0x0, sizeof(svga->state.hw_draw.views));
268 memset(&svga->state.hw_draw.num_samplers, 0,
269 sizeof(svga->state.hw_draw.num_samplers));
270 memset(&svga->state.hw_draw
[all...]
H A Dsvga_state_tss.c49 for (i = 0; i < ARRAY_SIZE(svga->state.hw_draw.views); i++) {
50 struct svga_hw_view_state *view = &svga->state.hw_draw.views[i];
148 svga->state.hw_draw.num_views);
160 &svga->state.hw_draw.views[i],
165 svga->state.hw_draw.num_views = svga->curr.num_sampler_views[shader];
170 svga_fs_variant(svga->state.hw_draw.fs)->pstipple_sampler_unit;
174 &svga->state.hw_draw.views[unit],
179 svga->state.hw_draw.num_backed_views = 0;
202 svga->state.hw_draw.num_backed_views++;
248 for (i = 0; i < svga->state.hw_draw
[all...]
H A Dsvga_state_rss.c50 STATIC_ASSERT(SVGA3D_RS_##token < ARRAY_SIZE(svga->state.hw_draw.rs)); \
51 if (svga->state.hw_draw.rs[SVGA3D_RS_##token] != value) { \
53 svga->state.hw_draw.rs[SVGA3D_RS_##token] = value; \
60 STATIC_ASSERT(SVGA3D_RS_##token < ARRAY_SIZE(svga->state.hw_draw.rs)); \
61 if (svga->state.hw_draw.rs[SVGA3D_RS_##token] != value) { \
63 svga->state.hw_draw.rs[SVGA3D_RS_##token] = value; \
304 memset(svga->state.hw_draw.rs, 0xcd, sizeof(svga->state.hw_draw.rs));
402 if (svga->state.hw_draw.blend_id != curr->id ||
403 svga->state.hw_draw
[all...]
H A Dsvga_state_constants.c119 const struct svga_shader_variant *variant = svga->state.hw_draw.fs;
202 const struct svga_shader_variant *variant = svga->state.hw_draw.vs;
252 const struct svga_shader_variant *variant = svga->state.hw_draw.gs;
302 const struct svga_shader_variant *variant = svga->state.hw_draw.tcs;
325 const struct svga_shader_variant *variant = svga->state.hw_draw.tes;
353 const struct svga_shader_variant *variant = svga->state.hw_draw.cs;
411 if (memcmp(svga->state.hw_draw.cb[shader][offset + i],
431 memcmp(svga->state.hw_draw.cb[shader][offset + j],
474 memcpy(svga->state.hw_draw.cb[shader][offset + i],
548 variant = svga->state.hw_draw
[all...]
H A Dsvga_state_sampler.c278 for (; i < svga->state.hw_draw.num_sampler_views[shader]; i++) {
287 nviews = MAX2(svga->state.hw_draw.num_sampler_views[shader], count);
289 if (count != svga->state.hw_draw.num_sampler_views[shader] ||
290 memcmp(sampler_views, svga->state.hw_draw.sampler_views[shader],
305 svga->state.hw_draw.sampler_views[shader][i];
342 svga->state.hw_draw.num_sampler_views[shader] = count;
345 &svga->state.hw_draw.sampler_views[shader][i],
355 svga_fs_variant(svga->state.hw_draw.fs)->pstipple_sampler_unit;
410 svga_fs_variant(svga->state.hw_draw.fs);
429 for (; i < svga->state.hw_draw
[all...]
H A Dsvga_draw.c211 if (svga->state.hw_draw.num_backed_views) {
212 for (i = 0; i < svga->state.hw_draw.num_views; i++) {
213 struct svga_hw_view_state *view = &svga->state.hw_draw.views[i];
383 svga_fs_variant(svga->state.hw_draw.fs)->pstipple_sampler_unit;
425 buffer = svga_buffer(svga->state.hw_draw.constbuf[shader][0]);
443 enabled_constbufs = svga->state.hw_draw.enabled_constbufs[shader] & ~1u;
455 handle = svga->state.hw_draw.constbufoffsets[shader][i].handle;
563 for (; i < svga->state.hw_draw.num_vbuffers; i++) {
588 for (; i < svga->state.hw_draw.num_vbuffers; i++) {
594 if (svga->state.hw_draw
[all...]
H A Dsvga_state_ts.c86 struct svga_tes_variant *tes = svga_tes_variant(svga->state.hw_draw.tes);
127 if (svga->state.hw_draw.tcs != NULL) {
135 svga->state.hw_draw.tcs = NULL;
156 if (variant != svga->state.hw_draw.tcs) {
164 svga->state.hw_draw.tcs = variant;
345 if (svga->state.hw_draw.tes != NULL) {
353 svga->state.hw_draw.tes = NULL;
386 if (variant != svga->state.hw_draw.tes) {
394 svga->state.hw_draw.tes = variant;
H A Dsvga_state_gs.c160 if (svga->state.hw_draw.gs != NULL) {
168 svga->state.hw_draw.gs = NULL;
213 if (variant != svga->state.hw_draw.gs) {
221 svga->state.hw_draw.gs = variant;
H A Dsvga_state_fs.c387 if (!svga->state.hw_draw.fs)
392 svga->state.hw_draw.fs->gb_shader,
398 svga->state.hw_draw.fs->gb_shader,
399 svga->state.hw_draw.fs->id);
402 svga->state.hw_draw.fs->gb_shader);
439 if (svga->state.hw_draw.fs) {
445 svga->state.hw_draw.fs = NULL;
471 if (variant != svga->state.hw_draw.fs) {
479 svga->state.hw_draw.fs = variant;
H A Dsvga_pipe_vertex.c298 if (velems->id == svga->state.hw_draw.layout_id)
299 svga->state.hw_draw.layout_id = SVGA3D_INVALID_ID;
318 pipe_resource_reference(&svga->state.hw_draw.ib, NULL);
320 for (i = 0; i < svga->state.hw_draw.num_vbuffers; i++)
321 pipe_resource_reference(&svga->state.hw_draw.vbuffers[i], NULL);
H A Dsvga_pipe_fs.c104 if (variant == svga->state.hw_draw.fs) {
106 svga->state.hw_draw.fs = NULL;
H A Dsvga_pipe_gs.c112 if (variant == svga->state.hw_draw.gs) {
114 svga->state.hw_draw.gs = NULL;
H A Dsvga_pipe_ts.c119 if (variant == svga->state.hw_draw.tcs) {
121 svga->state.hw_draw.tcs = NULL;
203 if (variant == svga->state.hw_draw.tes) {
205 svga->state.hw_draw.tes = NULL;

Completed in 14 milliseconds

123