diff options
-rw-r--r-- | test.c | 50 |
1 files changed, 25 insertions, 25 deletions
@@ -99,7 +99,7 @@ int r600_tri_flat(struct radeon *radeon) struct drm_r600_framebuffer fb; struct drm_r600_cb_cntl cb_cntl; struct drm_r600_depth depth; - struct drm_r600_rasterizer pa; + struct drm_r600_rasterizer rasterizer; struct drm_r600_viewport vport; struct drm_r600_scissor scissor; struct drm_r600_constants vs_constants; @@ -161,31 +161,31 @@ int r600_tri_flat(struct radeon *radeon) rq.data = &fb; batch.framebuffer = r600_atom_create(rdev, &rq); /* build pa */ - pa.pa_sc_mpass_ps_cntl = 0x00000000; - pa.pa_sc_line_cntl = 0x00000400; - pa.pa_sc_aa_config = 0x00000000; - pa.pa_sc_aa_sample_locs_mctx = 0x00000000; - pa.pa_sc_aa_mask = 0xffffffff; - pa.pa_cl_clip_cntl = 0x00000000; - pa.pa_cl_vs_out_cntl = 0x00000000; - pa.pa_cl_naninf_cntl = 0x00000000; - pa.pa_cl_gb_vert_clip_adj = 0x3f800000; - pa.pa_cl_gb_vert_disc_adj = 0x3f800000; - pa.pa_cl_gb_horz_clip_adj = 0x3f800000; - pa.pa_cl_gb_horz_disc_adj = 0x3f800000; - pa.pa_su_sc_mode_cntl = 0x00080000; - pa.pa_su_point_size = 0x00080008; - pa.pa_su_point_minmax = 0x80000000; - pa.pa_su_line_cntl = 0x00000008; - pa.pa_sc_line_stipple = 0x00000005; - pa.pa_su_poly_offset_db_fmt_cntl = 0x00000000; - pa.pa_su_poly_offset_clamp = 0x00000000; - pa.pa_su_poly_offset_front_scale = 0x00000000; - pa.pa_su_poly_offset_front_offset = 0x00000000; - pa.pa_su_poly_offset_back_scale = 0x00000000; - pa.pa_su_poly_offset_back_offset = 0x00000000; + rasterizer.pa_sc_mpass_ps_cntl = 0x00000000; + rasterizer.pa_sc_line_cntl = 0x00000400; + rasterizer.pa_sc_aa_config = 0x00000000; + rasterizer.pa_sc_aa_sample_locs_mctx = 0x00000000; + rasterizer.pa_sc_aa_mask = 0xffffffff; + rasterizer.pa_cl_clip_cntl = 0x00000000; + rasterizer.pa_cl_vs_out_cntl = 0x00000000; + rasterizer.pa_cl_naninf_cntl = 0x00000000; + rasterizer.pa_cl_gb_vert_clip_adj = 0x3f800000; + rasterizer.pa_cl_gb_vert_disc_adj = 0x3f800000; + rasterizer.pa_cl_gb_horz_clip_adj = 0x3f800000; + rasterizer.pa_cl_gb_horz_disc_adj = 0x3f800000; + rasterizer.pa_su_sc_mode_cntl = 0x00080000; + rasterizer.pa_su_point_size = 0x00080008; + rasterizer.pa_su_point_minmax = 0x80000000; + rasterizer.pa_su_line_cntl = 0x00000008; + rasterizer.pa_sc_line_stipple = 0x00000005; + rasterizer.pa_su_poly_offset_db_fmt_cntl = 0x00000000; + rasterizer.pa_su_poly_offset_clamp = 0x00000000; + rasterizer.pa_su_poly_offset_front_scale = 0x00000000; + rasterizer.pa_su_poly_offset_front_offset = 0x00000000; + rasterizer.pa_su_poly_offset_back_scale = 0x00000000; + rasterizer.pa_su_poly_offset_back_offset = 0x00000000; rq.type = R600_ATOM_RASTERIZER; - rq.data = &pa; + rq.data = &rasterizer; batch.rasterizer = r600_atom_create(rdev, &rq); /* cb rqrol */ cb_cntl.cb_clrcmp_control = 0x01000000; |