Home
last modified time | relevance | path

Searched refs:pm4 (Results 1 – 14 of 14) sorted by relevance

/external/libdrm/tests/amdgpu/
Dbasic_tests.c803 uint32_t *pm4; in amdgpu_command_submission_write_linear_helper() local
812 pm4 = calloc(pm4_dw, sizeof(*pm4)); in amdgpu_command_submission_write_linear_helper()
813 CU_ASSERT_NOT_EQUAL(pm4, NULL); in amdgpu_command_submission_write_linear_helper()
847 pm4[i++] = SDMA_PACKET(SDMA_OPCODE_WRITE, in amdgpu_command_submission_write_linear_helper()
849 pm4[i++] = 0xffffffff & bo_mc; in amdgpu_command_submission_write_linear_helper()
850 pm4[i++] = (0xffffffff00000000 & bo_mc) >> 32; in amdgpu_command_submission_write_linear_helper()
851 pm4[i++] = sdma_write_length; in amdgpu_command_submission_write_linear_helper()
853 pm4[i++] = 0xdeadbeaf; in amdgpu_command_submission_write_linear_helper()
856 pm4[i++] = PACKET3(PACKET3_WRITE_DATA, 2 + sdma_write_length); in amdgpu_command_submission_write_linear_helper()
857 pm4[i++] = WRITE_DATA_DST_SEL(5) | WR_CONFIRM; in amdgpu_command_submission_write_linear_helper()
[all …]
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_state_shaders.c269 struct si_pm4_state *pm4) in si_set_tesseval_regs() argument
327 si_pm4_set_reg(pm4, R_028B6C_VGT_TF_PARAM, in si_set_tesseval_regs()
336 if (shader->pm4) in si_get_shader_pm4_state()
337 si_pm4_clear_state(shader->pm4); in si_get_shader_pm4_state()
339 shader->pm4 = CALLOC_STRUCT(si_pm4_state); in si_get_shader_pm4_state()
341 return shader->pm4; in si_get_shader_pm4_state()
346 struct si_pm4_state *pm4; in si_shader_ls() local
350 pm4 = si_get_shader_pm4_state(shader); in si_shader_ls()
351 if (!pm4) in si_shader_ls()
355 si_pm4_add_bo(pm4, shader->bo, RADEON_USAGE_READ, RADEON_PRIO_SHADER_BINARY); in si_shader_ls()
[all …]
Dsi_state.c409 struct si_pm4_state *pm4 = &blend->pm4; in si_create_blend_state_mode() local
426 si_pm4_set_reg(pm4, R_028B70_DB_ALPHA_TO_MASK, in si_create_blend_state_mode()
461 si_pm4_set_reg(pm4, R_028780_CB_BLEND0_CONTROL + i * 4, blend_cntl); in si_create_blend_state_mode()
472 si_pm4_set_reg(pm4, R_028780_CB_BLEND0_CONTROL + i * 4, blend_cntl); in si_create_blend_state_mode()
480 si_pm4_set_reg(pm4, R_028780_CB_BLEND0_CONTROL + i * 4, blend_cntl); in si_create_blend_state_mode()
539 si_pm4_set_reg(pm4, R_028780_CB_BLEND0_CONTROL + i * 4, blend_cntl); in si_create_blend_state_mode()
572 si_pm4_set_reg(pm4, R_028760_SX_MRT0_BLEND_OPT + i * 4, in si_create_blend_state_mode()
581 si_pm4_set_reg(pm4, R_028808_CB_COLOR_CONTROL, color_control); in si_create_blend_state_mode()
765 struct si_pm4_state *pm4 = &rs->pm4; in si_create_rs_state() local
799 si_pm4_set_reg(pm4, R_0286D4_SPI_INTERP_CONTROL_0, in si_create_rs_state()
[all …]
Dsi_pm4.c42 state->pm4[state->ndw++] = dw; in si_pm4_cmd_add()
49 state->pm4[state->last_pm4] = in si_pm4_cmd_end()
145 radeon_emit_array(cs, state->pm4, state->ndw); in si_pm4_emit()
201 state->pm4[i] = 0x80000000; /* type2 nop packet */ in si_pm4_upload_indirect_buffer()
204 state->pm4[i] = 0xffff1000; /* type3 nop packet */ in si_pm4_upload_indirect_buffer()
208 0, aligned_ndw *4, state->pm4); in si_pm4_upload_indirect_buffer()
Dsi_state.h47 struct si_pm4_state pm4; member
60 struct si_pm4_state pm4; member
88 struct si_pm4_state pm4; member
Dsi_pm4.h51 uint32_t pm4[SI_PM4_MAX_DW]; member
Dsi_debug.c223 ac_parse_ib(f, sctx->init_config->pm4, sctx->init_config->ndw, in si_dump_last_ib()
228 ac_parse_ib(f, sctx->init_config_gs_rings->pm4, in si_dump_last_ib()
Dsi_shader.h510 struct si_pm4_state *pm4; member
/external/skia/tests/
DSkColor4fTest.cpp53 SkPM4f pm4 = c4.premul(); in DEF_TEST() local
54 REPORTER_ASSERT(reporter, pm4.a() == c4.fA); in DEF_TEST()
55 REPORTER_ASSERT(reporter, pm4.r() == c4.fA * c4.fR); in DEF_TEST()
56 REPORTER_ASSERT(reporter, pm4.g() == c4.fA * c4.fG); in DEF_TEST()
57 REPORTER_ASSERT(reporter, pm4.b() == c4.fA * c4.fB); in DEF_TEST()
62 pm4 = c4.premul(); in DEF_TEST()
63 REPORTER_ASSERT(reporter, pm4.fVec[SK_A_INDEX] == c4.fA); in DEF_TEST()
64 REPORTER_ASSERT(reporter, nearly_equal(pm4.r(), c4.fA * c4.fR)); in DEF_TEST()
65 REPORTER_ASSERT(reporter, nearly_equal(pm4.g(), c4.fA * c4.fG)); in DEF_TEST()
66 REPORTER_ASSERT(reporter, nearly_equal(pm4.b(), c4.fA * c4.fB)); in DEF_TEST()
DFloat16Test.cpp54 SkPM4f pm4 = SkPM4f::FromF16(pm.addrF16(x, y)); in DEF_TEST() local
55 REPORTER_ASSERT(reporter, eq_within_half_float(origpm4, pm4)); in DEF_TEST()
/external/skqp/tests/
DSkColor4fTest.cpp53 SkPM4f pm4 = c4.premul(); in DEF_TEST() local
54 REPORTER_ASSERT(reporter, pm4.a() == c4.fA); in DEF_TEST()
55 REPORTER_ASSERT(reporter, pm4.r() == c4.fA * c4.fR); in DEF_TEST()
56 REPORTER_ASSERT(reporter, pm4.g() == c4.fA * c4.fG); in DEF_TEST()
57 REPORTER_ASSERT(reporter, pm4.b() == c4.fA * c4.fB); in DEF_TEST()
62 pm4 = c4.premul(); in DEF_TEST()
63 REPORTER_ASSERT(reporter, pm4.fVec[SK_A_INDEX] == c4.fA); in DEF_TEST()
64 REPORTER_ASSERT(reporter, nearly_equal(pm4.r(), c4.fA * c4.fR)); in DEF_TEST()
65 REPORTER_ASSERT(reporter, nearly_equal(pm4.g(), c4.fA * c4.fG)); in DEF_TEST()
66 REPORTER_ASSERT(reporter, nearly_equal(pm4.b(), c4.fA * c4.fB)); in DEF_TEST()
DFloat16Test.cpp54 SkPM4f pm4 = SkPM4f::FromF16(pm.addrF16(x, y)); in DEF_TEST() local
55 REPORTER_ASSERT(reporter, eq_within_half_float(origpm4, pm4)); in DEF_TEST()
/external/ltp/testcases/kernel/mem/mem/
Dmem02.c68 char *pm1, *pm2, *pm3, *pm4; in main() local
151 pm4 = pm3 = malloc(10); in main()
153 *pm4++ = 'X'; in main()
156 pm4 = realloc(pm3, 5); in main()
157 pm6 = (long)pm4; in main()
158 pm3 = pm4; in main()
161 if (*pm4++ != 'X') { in main()
170 pm4 = realloc(pm3, 15); in main()
172 pm3 = pm4; in main()
182 free(pm4); in main()
/external/clang/test/CXX/temp/temp.arg/temp.arg.nontype/
Dp1-11.cpp43 PM<(int X::*)0> pm4; variable