Lines Matching refs:cs

55 		results = ctx->ws->buffer_map(buf->cs_buf, ctx->cs, PIPE_TRANSFER_WRITE);  in r600_new_query_buffer()
78 results = ctx->ws->buffer_map(buf->cs_buf, ctx->cs, PIPE_TRANSFER_WRITE); in r600_new_query_buffer()
90 struct radeon_winsys_cs *cs = ctx->cs; in r600_emit_query_begin() local
111 cs->buf[cs->cdw++] = PKT3(PKT3_EVENT_WRITE, 2, 0); in r600_emit_query_begin()
112 cs->buf[cs->cdw++] = EVENT_TYPE(EVENT_TYPE_ZPASS_DONE) | EVENT_INDEX(1); in r600_emit_query_begin()
113 cs->buf[cs->cdw++] = va; in r600_emit_query_begin()
114 cs->buf[cs->cdw++] = (va >> 32UL) & 0xFF; in r600_emit_query_begin()
120 cs->buf[cs->cdw++] = PKT3(PKT3_EVENT_WRITE, 2, 0); in r600_emit_query_begin()
121 cs->buf[cs->cdw++] = EVENT_TYPE(EVENT_TYPE_SAMPLE_STREAMOUTSTATS) | EVENT_INDEX(3); in r600_emit_query_begin()
122 cs->buf[cs->cdw++] = va; in r600_emit_query_begin()
123 cs->buf[cs->cdw++] = (va >> 32UL) & 0xFF; in r600_emit_query_begin()
126 cs->buf[cs->cdw++] = PKT3(PKT3_EVENT_WRITE_EOP, 4, 0); in r600_emit_query_begin()
127 cs->buf[cs->cdw++] = EVENT_TYPE(EVENT_TYPE_CACHE_FLUSH_AND_INV_TS_EVENT) | EVENT_INDEX(5); in r600_emit_query_begin()
128 cs->buf[cs->cdw++] = va; in r600_emit_query_begin()
129 cs->buf[cs->cdw++] = (3 << 29) | ((va >> 32UL) & 0xFF); in r600_emit_query_begin()
130 cs->buf[cs->cdw++] = 0; in r600_emit_query_begin()
131 cs->buf[cs->cdw++] = 0; in r600_emit_query_begin()
136 cs->buf[cs->cdw++] = PKT3(PKT3_NOP, 0, 0); in r600_emit_query_begin()
137 cs->buf[cs->cdw++] = r600_context_bo_reloc(ctx, query->buffer.buf, RADEON_USAGE_WRITE); in r600_emit_query_begin()
148 struct radeon_winsys_cs *cs = ctx->cs; in r600_emit_query_end() local
162 cs->buf[cs->cdw++] = PKT3(PKT3_EVENT_WRITE, 2, 0); in r600_emit_query_end()
163 cs->buf[cs->cdw++] = EVENT_TYPE(EVENT_TYPE_ZPASS_DONE) | EVENT_INDEX(1); in r600_emit_query_end()
164 cs->buf[cs->cdw++] = va; in r600_emit_query_end()
165 cs->buf[cs->cdw++] = (va >> 32UL) & 0xFF; in r600_emit_query_end()
171 cs->buf[cs->cdw++] = PKT3(PKT3_EVENT_WRITE, 2, 0); in r600_emit_query_end()
172 cs->buf[cs->cdw++] = EVENT_TYPE(EVENT_TYPE_SAMPLE_STREAMOUTSTATS) | EVENT_INDEX(3); in r600_emit_query_end()
173 cs->buf[cs->cdw++] = query->buffer.results_end + query->result_size/2; in r600_emit_query_end()
174 cs->buf[cs->cdw++] = 0; in r600_emit_query_end()
180 cs->buf[cs->cdw++] = PKT3(PKT3_EVENT_WRITE_EOP, 4, 0); in r600_emit_query_end()
181 cs->buf[cs->cdw++] = EVENT_TYPE(EVENT_TYPE_CACHE_FLUSH_AND_INV_TS_EVENT) | EVENT_INDEX(5); in r600_emit_query_end()
182 cs->buf[cs->cdw++] = va; in r600_emit_query_end()
183 cs->buf[cs->cdw++] = (3 << 29) | ((va >> 32UL) & 0xFF); in r600_emit_query_end()
184 cs->buf[cs->cdw++] = 0; in r600_emit_query_end()
185 cs->buf[cs->cdw++] = 0; in r600_emit_query_end()
190 cs->buf[cs->cdw++] = PKT3(PKT3_NOP, 0, 0); in r600_emit_query_end()
191 cs->buf[cs->cdw++] = r600_context_bo_reloc(ctx, query->buffer.buf, RADEON_USAGE_WRITE); in r600_emit_query_end()
207 struct radeon_winsys_cs *cs = ctx->cs; in r600_emit_query_predication() local
212 cs->buf[cs->cdw++] = PKT3(PKT3_SET_PREDICATION, 1, 0); in r600_emit_query_predication()
213 cs->buf[cs->cdw++] = 0; in r600_emit_query_predication()
214 cs->buf[cs->cdw++] = PRED_OP(PREDICATION_OP_CLEAR); in r600_emit_query_predication()
237 cs->buf[cs->cdw++] = PKT3(PKT3_SET_PREDICATION, 1, 0); in r600_emit_query_predication()
238 cs->buf[cs->cdw++] = (va + results_base) & 0xFFFFFFFFUL; in r600_emit_query_predication()
239 cs->buf[cs->cdw++] = op | (((va + results_base) >> 32UL) & 0xFF); in r600_emit_query_predication()
240 cs->buf[cs->cdw++] = PKT3(PKT3_NOP, 0, 0); in r600_emit_query_predication()
241 cs->buf[cs->cdw++] = r600_context_bo_reloc(ctx, qbuf->buf, RADEON_USAGE_READ); in r600_emit_query_predication()
355 …if (rctx->ws->cs_is_buffer_referenced(rctx->cs, rquery->buffer.buf->cs_buf, RADEON_USAGE_READWRITE… in r600_begin_query()
416 map = ctx->ws->buffer_map(qbuf->buf->cs_buf, ctx->cs, in r600_get_query_buffer_result()