瀏覽代碼

maxwell_3d: Add patch vertices register

ReinUsesLisp 6 年之前
父節點
當前提交
d2b50c5ebd
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/video_core/engines/maxwell_3d.h

+ 4 - 1
src/video_core/engines/maxwell_3d.h

@@ -662,7 +662,9 @@ public:
                 u32 polygon_offset_line_enable;
                 u32 polygon_offset_line_enable;
                 u32 polygon_offset_fill_enable;
                 u32 polygon_offset_fill_enable;
 
 
-                INSERT_UNION_PADDING_WORDS(0xD);
+                u32 patch_vertices;
+
+                INSERT_UNION_PADDING_WORDS(0xC);
 
 
                 std::array<ScissorTest, NumViewports> scissor_test;
                 std::array<ScissorTest, NumViewports> scissor_test;
 
 
@@ -1397,6 +1399,7 @@ ASSERT_REG_POSITION(clear_stencil, 0x368);
 ASSERT_REG_POSITION(polygon_offset_point_enable, 0x370);
 ASSERT_REG_POSITION(polygon_offset_point_enable, 0x370);
 ASSERT_REG_POSITION(polygon_offset_line_enable, 0x371);
 ASSERT_REG_POSITION(polygon_offset_line_enable, 0x371);
 ASSERT_REG_POSITION(polygon_offset_fill_enable, 0x372);
 ASSERT_REG_POSITION(polygon_offset_fill_enable, 0x372);
+ASSERT_REG_POSITION(patch_vertices, 0x373);
 ASSERT_REG_POSITION(scissor_test, 0x380);
 ASSERT_REG_POSITION(scissor_test, 0x380);
 ASSERT_REG_POSITION(stencil_back_func_ref, 0x3D5);
 ASSERT_REG_POSITION(stencil_back_func_ref, 0x3D5);
 ASSERT_REG_POSITION(stencil_back_func_mask, 0x3D6);
 ASSERT_REG_POSITION(stencil_back_func_mask, 0x3D6);