Lines Matching refs:dyn
63 const struct vk_dynamic_graphics_state *dyn = in genX() local
68 BITSET_TEST(dyn->dirty, MESA_VK_DYNAMIC_IA_PRIMITIVE_TOPOLOGY) || in genX()
69 BITSET_TEST(dyn->dirty, MESA_VK_DYNAMIC_RS_CULL_MODE) || in genX()
70 BITSET_TEST(dyn->dirty, MESA_VK_DYNAMIC_RS_FRONT_FACE) || in genX()
71 BITSET_TEST(dyn->dirty, MESA_VK_DYNAMIC_RS_DEPTH_BIAS_ENABLE) || in genX()
72 BITSET_TEST(dyn->dirty, MESA_VK_DYNAMIC_RS_DEPTH_BIAS_FACTORS) || in genX()
73 BITSET_TEST(dyn->dirty, MESA_VK_DYNAMIC_RS_LINE_WIDTH)) { in genX()
79 dyn->ia.primitive_topology); in genX()
90 .LineWidth = dyn->rs.line.width, in genX()
92 .CullMode = genX(vk_to_intel_cullmode)[dyn->rs.cull_mode], in genX()
93 .FrontWinding = genX(vk_to_intel_front_face)[dyn->rs.front_face], in genX()
95 .GlobalDepthOffsetEnableSolid = dyn->rs.depth_bias.enable, in genX()
96 .GlobalDepthOffsetEnableWireframe = dyn->rs.depth_bias.enable, in genX()
97 .GlobalDepthOffsetEnablePoint = dyn->rs.depth_bias.enable, in genX()
98 .GlobalDepthOffsetConstant = dyn->rs.depth_bias.constant, in genX()
99 .GlobalDepthOffsetScale = dyn->rs.depth_bias.slope, in genX()
100 .GlobalDepthOffsetClamp = dyn->rs.depth_bias.clamp, in genX()
107 if (BITSET_TEST(dyn->dirty, MESA_VK_DYNAMIC_DS_STENCIL_REFERENCE) || in genX()
108 BITSET_TEST(dyn->dirty, MESA_VK_DYNAMIC_CB_BLEND_CONSTANTS)) { in genX()
114 .BlendConstantColorRed = dyn->cb.blend_constants[0], in genX()
115 .BlendConstantColorGreen = dyn->cb.blend_constants[1], in genX()
116 .BlendConstantColorBlue = dyn->cb.blend_constants[2], in genX()
117 .BlendConstantColorAlpha = dyn->cb.blend_constants[3], in genX()
118 .StencilReferenceValue = dyn->ds.stencil.front.reference & 0xff, in genX()
119 .BackfaceStencilReferenceValue = dyn->ds.stencil.back.reference & 0xff, in genX()
128 if (BITSET_TEST(dyn->dirty, MESA_VK_DYNAMIC_RS_LINE_STIPPLE)) { in genX()
130 ls.LineStipplePattern = dyn->rs.line.stipple.pattern; in genX()
132 1.0f / MAX2(1, dyn->rs.line.stipple.factor); in genX()
133 ls.LineStippleRepeatCount = dyn->rs.line.stipple.factor; in genX()
139 BITSET_TEST(dyn->dirty, MESA_VK_DYNAMIC_DS_DEPTH_TEST_ENABLE) || in genX()
140 BITSET_TEST(dyn->dirty, MESA_VK_DYNAMIC_DS_DEPTH_WRITE_ENABLE) || in genX()
141 BITSET_TEST(dyn->dirty, MESA_VK_DYNAMIC_DS_DEPTH_COMPARE_OP) || in genX()
142 BITSET_TEST(dyn->dirty, MESA_VK_DYNAMIC_DS_STENCIL_TEST_ENABLE) || in genX()
143 BITSET_TEST(dyn->dirty, MESA_VK_DYNAMIC_DS_STENCIL_OP) || in genX()
144 BITSET_TEST(dyn->dirty, MESA_VK_DYNAMIC_DS_STENCIL_COMPARE_MASK) || in genX()
145 BITSET_TEST(dyn->dirty, MESA_VK_DYNAMIC_DS_STENCIL_WRITE_MASK)) { in genX()
154 struct vk_depth_stencil_state opt_ds = dyn->ds; in genX()
195 BITSET_TEST(dyn->dirty, MESA_VK_DYNAMIC_IA_PRIMITIVE_RESTART_ENABLE))) { in genX()
201 vf.IndexedDrawCutIndexEnable = dyn->ia.primitive_restart_enable; in genX()
208 ib.CutIndexEnable = dyn->ia.primitive_restart_enable; in genX()
226 BITSET_TEST(dyn->dirty, MESA_VK_DYNAMIC_IA_PRIMITIVE_TOPOLOGY) || in genX()
227 BITSET_TEST(dyn->dirty, MESA_VK_DYNAMIC_CB_COLOR_WRITE_ENABLES)) { in genX()
230 dyn->ia.primitive_topology); in genX()
249 BITSET_TEST(dyn->dirty, MESA_VK_DYNAMIC_MS_SAMPLE_LOCATIONS)) { in genX()
251 const struct vk_sample_locations_state *sl = dyn->ms.sample_locations; in genX()
257 BITSET_TEST(dyn->dirty, MESA_VK_DYNAMIC_CB_LOGIC_OP) || in genX()
258 BITSET_TEST(dyn->dirty, MESA_VK_DYNAMIC_CB_COLOR_WRITE_ENABLES)) { in genX()
259 const uint8_t color_writes = dyn->cb.color_write_enables; in genX()
287 .LogicOpFunction = genX(vk_to_intel_logic_op)[dyn->cb.logic_op], in genX()