/external/libdrm/tests/etnaviv/ |
D | etnaviv_2d_test.c | 53 static inline void etna_set_state(struct etna_cmd_stream *stream, uint32_t address, uint32_t value) in etna_set_state() function 78 etna_set_state(stream, VIVS_DE_SRC_STRIDE, 0); in gen_cmd_stream() 79 etna_set_state(stream, VIVS_DE_SRC_ROTATION_CONFIG, 0); in gen_cmd_stream() 80 etna_set_state(stream, VIVS_DE_SRC_CONFIG, 0); in gen_cmd_stream() 81 etna_set_state(stream, VIVS_DE_SRC_ORIGIN, 0); in gen_cmd_stream() 82 etna_set_state(stream, VIVS_DE_SRC_SIZE, 0); in gen_cmd_stream() 83 etna_set_state(stream, VIVS_DE_SRC_COLOR_BG, 0); in gen_cmd_stream() 84 etna_set_state(stream, VIVS_DE_SRC_COLOR_FG, 0); in gen_cmd_stream() 85 etna_set_state(stream, VIVS_DE_STRETCH_FACTOR_LOW, 0); in gen_cmd_stream() 86 etna_set_state(stream, VIVS_DE_STRETCH_FACTOR_HIGH, 0); in gen_cmd_stream() [all …]
|
/external/mesa3d/src/gallium/drivers/etnaviv/ |
D | etnaviv_blt.c | 112 etna_set_state(stream, VIVS_BLT_ENABLE, 0x00000001); in emit_blt_clearimage() 114 etna_set_state(stream, VIVS_BLT_CONFIG, VIVS_BLT_CONFIG_CLEAR_BPP(op->dest.bpp-1)); in emit_blt_clearimage() 119 etna_set_state(stream, VIVS_BLT_DEST_STRIDE, blt_compute_stride_bits(&op->dest)); in emit_blt_clearimage() 120 etna_set_state(stream, VIVS_BLT_DEST_CONFIG, blt_compute_img_config_bits(&op->dest, true)); in emit_blt_clearimage() 122 etna_set_state(stream, VIVS_BLT_SRC_STRIDE, blt_compute_stride_bits(&op->dest)); in emit_blt_clearimage() 123 etna_set_state(stream, VIVS_BLT_SRC_CONFIG, blt_compute_img_config_bits(&op->dest, false)); in emit_blt_clearimage() 125 …etna_set_state(stream, VIVS_BLT_DEST_POS, VIVS_BLT_DEST_POS_X(op->rect_x) | VIVS_BLT_DEST_POS_Y(op… in emit_blt_clearimage() 126 …etna_set_state(stream, VIVS_BLT_IMAGE_SIZE, VIVS_BLT_IMAGE_SIZE_WIDTH(op->rect_w) | VIVS_BLT_IMAGE… in emit_blt_clearimage() 127 etna_set_state(stream, VIVS_BLT_CLEAR_COLOR0, op->clear_value[0]); in emit_blt_clearimage() 128 etna_set_state(stream, VIVS_BLT_CLEAR_COLOR1, op->clear_value[1]); in emit_blt_clearimage() [all …]
|
D | etnaviv_context.c | 403 etna_set_state(stream, VIVS_GL_API_MODE, VIVS_GL_API_MODE_OPENGL); in etna_reset_gpu_state() 404 etna_set_state(stream, VIVS_GL_VERTEX_ELEMENT_CONFIG, 0x00000001); in etna_reset_gpu_state() 405 etna_set_state(stream, VIVS_PA_W_CLIP_LIMIT, 0x34000001); in etna_reset_gpu_state() 406 …etna_set_state(stream, VIVS_PA_FLAGS, 0x00000000); /* blob sets ZCONVERT_BYPASS on GC3000+, this m… in etna_reset_gpu_state() 407 etna_set_state(stream, VIVS_PA_VIEWPORT_UNK00A80, 0x38a01404); in etna_reset_gpu_state() 408 etna_set_state(stream, VIVS_PA_VIEWPORT_UNK00A84, fui(8192.0)); in etna_reset_gpu_state() 409 etna_set_state(stream, VIVS_PA_ZFARCLIPPING, 0x00000000); in etna_reset_gpu_state() 410 etna_set_state(stream, VIVS_RA_HDEPTH_CONTROL, 0x00007000); in etna_reset_gpu_state() 411 etna_set_state(stream, VIVS_PS_CONTROL_EXT, 0x00000000); in etna_reset_gpu_state() 415 etna_set_state(stream, VIVS_VS_HALTI1_UNK00884, 0x00000808); in etna_reset_gpu_state() [all …]
|
D | etnaviv_emit.c | 246 etna_set_state(stream, VIVS_GL_FLUSH_CACHE, to_flush); in etna_emit_state() 252 etna_set_state(stream, VIVS_TS_FLUSH_CACHE, VIVS_TS_FLUSH_CACHE_FLUSH); in etna_emit_state() 582 etna_set_state(stream, VIVS_VS_NEWRANGE_LOW, 0); in etna_emit_state() 583 etna_set_state(stream, VIVS_VS_NEWRANGE_HIGH, ctx->shader_state.vs_inst_mem_size / 4); in etna_emit_state() 586 etna_set_state(stream, VIVS_SH_CONFIG, 0x00000002); in etna_emit_state() 587 etna_set_state(stream, VIVS_VS_ICACHE_CONTROL, VIVS_VS_ICACHE_CONTROL_ENABLE); in etna_emit_state() 588 etna_set_state(stream, VIVS_VS_ICACHE_COUNT, ctx->shader_state.vs_inst_mem_size / 4 - 1); in etna_emit_state() 591 etna_set_state(stream, VIVS_PS_NEWRANGE_LOW, 0); in etna_emit_state() 592 etna_set_state(stream, VIVS_PS_NEWRANGE_HIGH, ctx->shader_state.ps_inst_mem_size / 4); in etna_emit_state() 595 etna_set_state(stream, VIVS_SH_CONFIG, 0x00000002); in etna_emit_state() [all …]
|
D | etnaviv_texture_desc.c | 276 etna_set_state(stream, VIVS_TS_SAMPLER_CONFIG(x), sv->ts.TS_SAMPLER_CONFIG); in etna_emit_texture_desc() 278 etna_set_state(stream, VIVS_TS_SAMPLER_CLEAR_VALUE(x), sv->ts.TS_SAMPLER_CLEAR_VALUE); in etna_emit_texture_desc() 279 etna_set_state(stream, VIVS_TS_SAMPLER_CLEAR_VALUE2(x), sv->ts.TS_SAMPLER_CLEAR_VALUE2); in etna_emit_texture_desc() 300 etna_set_state(stream, VIVS_NTE_DESCRIPTOR_TX_CTRL(x), in etna_emit_texture_desc() 305 etna_set_state(stream, VIVS_NTE_DESCRIPTOR_SAMP_CTRL0(x), SAMP_CTRL0); in etna_emit_texture_desc() 306 … etna_set_state(stream, VIVS_NTE_DESCRIPTOR_SAMP_CTRL1(x), ss->SAMP_CTRL1 | sv->SAMP_CTRL1); in etna_emit_texture_desc() 307 etna_set_state(stream, VIVS_NTE_DESCRIPTOR_SAMP_LOD_MINMAX(x), ss->SAMP_LOD_MINMAX); in etna_emit_texture_desc() 308 etna_set_state(stream, VIVS_NTE_DESCRIPTOR_SAMP_LOD_BIAS(x), ss->SAMP_LOD_BIAS); in etna_emit_texture_desc() 309 etna_set_state(stream, VIVS_NTE_DESCRIPTOR_SAMP_ANISOTROPY(x), ss->SAMP_ANISOTROPY); in etna_emit_texture_desc() 335 etna_set_state(stream, VIVS_NTE_DESCRIPTOR_INVALIDATE, in etna_emit_texture_desc()
|
D | etnaviv_rs.c | 327 etna_set_state(ctx->stream, VIVS_TS_COLOR_AUTO_DISABLE_COUNT, in etna_blit_clear_color_rs() 386 etna_set_state(ctx->stream, VIVS_TS_DEPTH_AUTO_DISABLE_COUNT, in etna_blit_clear_zs_rs() 419 …etna_set_state(ctx->stream, VIVS_GL_FLUSH_CACHE, VIVS_GL_FLUSH_CACHE_COLOR | VIVS_GL_FLUSH_CACHE_D… in etna_clear_rs() 438 etna_set_state(ctx->stream, VIVS_TS_FLUSH_CACHE, VIVS_TS_FLUSH_CACHE_FLUSH); in etna_clear_rs() 453 etna_set_state(ctx->stream, VIVS_GL_FLUSH_CACHE, in etna_clear_rs() 712 etna_set_state(ctx->stream, VIVS_GL_FLUSH_CACHE, in etna_try_rs_blit() 717 etna_set_state(ctx->stream, VIVS_TS_FLUSH_CACHE, VIVS_TS_FLUSH_CACHE_FLUSH); in etna_try_rs_blit() 733 etna_set_state(ctx->stream, VIVS_TS_MEM_CONFIG, in etna_try_rs_blit() 749 etna_set_state(ctx->stream, VIVS_TS_COLOR_CLEAR_VALUE, src_lev->clear_value); in etna_try_rs_blit() 750 etna_set_state(ctx->stream, VIVS_TS_COLOR_CLEAR_VALUE_EXT, src_lev->clear_value >> 32); in etna_try_rs_blit() [all …]
|
D | etnaviv_query_acc_occlusion.c | 90 etna_set_state(ctx->stream, VIVS_GL_OCCLUSION_QUERY_CONTROL, 0x1DF5E76); in occlusion_suspend()
|
D | etnaviv_emit.h | 58 etna_set_state(struct etna_cmd_stream *stream, uint32_t address, uint32_t value) in etna_set_state() function
|
D | etnaviv_texture.c | 321 …etna_set_state(ctx->stream, VIVS_GL_FLUSH_CACHE, VIVS_GL_FLUSH_CACHE_COLOR | VIVS_GL_FLUSH_CACHE_T… in etna_texture_barrier()
|