Lines Matching refs:n
620 const Node *n = dlist->Head; in is_bitmap_list() local
621 if (n[0].opcode == OPCODE_BITMAP) { in is_bitmap_list()
622 n += InstSize[OPCODE_BITMAP]; in is_bitmap_list()
623 if (n[0].opcode == OPCODE_END_OF_LIST) in is_bitmap_list()
636 const Node *n = dlist->Head; in is_empty_list() local
637 return n[0].opcode == OPCODE_END_OF_LIST; in is_empty_list()
727 const Node *n; in build_bitmap_atlas() local
745 n = list->Head; in build_bitmap_atlas()
746 assert(n[0].opcode == OPCODE_BITMAP); in build_bitmap_atlas()
747 bitmap_width = n[1].i; in build_bitmap_atlas()
748 bitmap_height = n[2].i; in build_bitmap_atlas()
749 bitmap_xorig = n[3].f; in build_bitmap_atlas()
750 bitmap_yorig = n[4].f; in build_bitmap_atlas()
751 bitmap_xmove = n[5].f; in build_bitmap_atlas()
752 bitmap_ymove = n[6].f; in build_bitmap_atlas()
828 const Node *n = list->Head; in build_bitmap_atlas() local
830 assert(n[0].opcode == OPCODE_BITMAP || in build_bitmap_atlas()
831 n[0].opcode == OPCODE_END_OF_LIST); in build_bitmap_atlas()
833 if (n[0].opcode == OPCODE_BITMAP) { in build_bitmap_atlas()
834 unsigned bitmap_width = n[1].i; in build_bitmap_atlas()
835 unsigned bitmap_height = n[2].i; in build_bitmap_atlas()
838 const void *bitmap_image = get_pointer(&n[7]); in build_bitmap_atlas()
946 Node *n, *block; in _mesa_delete_list() local
949 n = block = dlist->Head; in _mesa_delete_list()
953 const OpCode opcode = n[0].opcode; in _mesa_delete_list()
957 n += ext_opcode_destroy(ctx, n); in _mesa_delete_list()
963 free(get_pointer(&n[6])); in _mesa_delete_list()
964 n += InstSize[n[0].opcode]; in _mesa_delete_list()
967 free(get_pointer(&n[10])); in _mesa_delete_list()
968 n += InstSize[n[0].opcode]; in _mesa_delete_list()
971 free(get_pointer(&n[3])); in _mesa_delete_list()
972 n += InstSize[n[0].opcode]; in _mesa_delete_list()
975 free(get_pointer(&n[5])); in _mesa_delete_list()
976 n += InstSize[n[0].opcode]; in _mesa_delete_list()
979 free(get_pointer(&n[7])); in _mesa_delete_list()
980 n += InstSize[n[0].opcode]; in _mesa_delete_list()
983 free(get_pointer(&n[1])); in _mesa_delete_list()
984 n += InstSize[n[0].opcode]; in _mesa_delete_list()
987 free(get_pointer(&n[8])); in _mesa_delete_list()
988 n += InstSize[n[0].opcode]; in _mesa_delete_list()
991 free(get_pointer(&n[9])); in _mesa_delete_list()
992 n += InstSize[n[0].opcode]; in _mesa_delete_list()
995 free(get_pointer(&n[10])); in _mesa_delete_list()
996 n += InstSize[n[0].opcode]; in _mesa_delete_list()
999 free(get_pointer(&n[7])); in _mesa_delete_list()
1000 n += InstSize[n[0].opcode]; in _mesa_delete_list()
1003 free(get_pointer(&n[9])); in _mesa_delete_list()
1004 n += InstSize[n[0].opcode]; in _mesa_delete_list()
1007 free(get_pointer(&n[11])); in _mesa_delete_list()
1008 n += InstSize[n[0].opcode]; in _mesa_delete_list()
1011 free(get_pointer(&n[7])); in _mesa_delete_list()
1012 n += InstSize[n[0].opcode]; in _mesa_delete_list()
1015 free(get_pointer(&n[8])); in _mesa_delete_list()
1016 n += InstSize[n[0].opcode]; in _mesa_delete_list()
1019 free(get_pointer(&n[9])); in _mesa_delete_list()
1020 n += InstSize[n[0].opcode]; in _mesa_delete_list()
1023 free(get_pointer(&n[7])); in _mesa_delete_list()
1024 n += InstSize[n[0].opcode]; in _mesa_delete_list()
1027 free(get_pointer(&n[9])); in _mesa_delete_list()
1028 n += InstSize[n[0].opcode]; in _mesa_delete_list()
1031 free(get_pointer(&n[11])); in _mesa_delete_list()
1032 n += InstSize[n[0].opcode]; in _mesa_delete_list()
1035 free(get_pointer(&n[4])); /* program string */ in _mesa_delete_list()
1036 n += InstSize[n[0].opcode]; in _mesa_delete_list()
1050 free(get_pointer(&n[3])); in _mesa_delete_list()
1051 n += InstSize[n[0].opcode]; in _mesa_delete_list()
1062 free(get_pointer(&n[4])); in _mesa_delete_list()
1063 n += InstSize[n[0].opcode]; in _mesa_delete_list()
1077 free(get_pointer(&n[4])); in _mesa_delete_list()
1078 n += InstSize[n[0].opcode]; in _mesa_delete_list()
1089 free(get_pointer(&n[5])); in _mesa_delete_list()
1090 n += InstSize[n[0].opcode]; in _mesa_delete_list()
1093 free(get_pointer(&n[3])); in _mesa_delete_list()
1094 n += InstSize[n[0].opcode]; in _mesa_delete_list()
1097 free(get_pointer(&n[3])); in _mesa_delete_list()
1098 n += InstSize[n[0].opcode]; in _mesa_delete_list()
1101 n = (Node *) get_pointer(&n[1]); in _mesa_delete_list()
1103 block = n; in _mesa_delete_list()
1111 n += InstSize[n[0].opcode]; in _mesa_delete_list()
1181 translate_id(GLsizei n, GLenum type, const GLvoid * list) in translate_id() argument
1194 return (GLint) bptr[n]; in translate_id()
1197 return (GLint) ubptr[n]; in translate_id()
1200 return (GLint) sptr[n]; in translate_id()
1203 return (GLint) usptr[n]; in translate_id()
1206 return iptr[n]; in translate_id()
1209 return (GLint) uiptr[n]; in translate_id()
1212 return (GLint) floorf(fptr[n]); in translate_id()
1214 ubptr = ((GLubyte *) list) + 2 * n; in translate_id()
1218 ubptr = ((GLubyte *) list) + 3 * n; in translate_id()
1223 ubptr = ((GLubyte *) list) + 4 * n; in translate_id()
1326 Node *n; in dlist_alloc() local
1355 n = ctx->ListState.CurrentBlock + ctx->ListState.CurrentPos; in dlist_alloc()
1356 n[0].opcode = OPCODE_CONTINUE; in dlist_alloc()
1366 save_pointer(&n[1], newblock); in dlist_alloc()
1380 n = ctx->ListState.CurrentBlock + ctx->ListState.CurrentPos; in dlist_alloc()
1383 n[0].opcode = OPCODE_NOP; in dlist_alloc()
1384 n++; in dlist_alloc()
1391 n[0].opcode = opcode; in dlist_alloc()
1393 return n; in dlist_alloc()
1410 Node *n = dlist_alloc(ctx, (OpCode) opcode, bytes, false); in _mesa_dlist_alloc() local
1411 if (n) in _mesa_dlist_alloc()
1412 return n + 1; /* return pointer to payload area, after opcode */ in _mesa_dlist_alloc()
1425 Node *n = dlist_alloc(ctx, (OpCode) opcode, bytes, true); in _mesa_dlist_alloc_aligned() local
1426 if (n) in _mesa_dlist_alloc_aligned()
1427 return n + 1; /* return pointer to payload area, after opcode */ in _mesa_dlist_alloc_aligned()
1518 Node *n; in save_Accum() local
1520 n = alloc_instruction(ctx, OPCODE_ACCUM, 2); in save_Accum()
1521 if (n) { in save_Accum()
1522 n[1].e = op; in save_Accum()
1523 n[2].f = value; in save_Accum()
1535 Node *n; in save_AlphaFunc() local
1537 n = alloc_instruction(ctx, OPCODE_ALPHA_FUNC, 2); in save_AlphaFunc()
1538 if (n) { in save_AlphaFunc()
1539 n[1].e = func; in save_AlphaFunc()
1540 n[2].f = (GLfloat) ref; in save_AlphaFunc()
1552 Node *n; in save_BindTexture() local
1554 n = alloc_instruction(ctx, OPCODE_BIND_TEXTURE, 2); in save_BindTexture()
1555 if (n) { in save_BindTexture()
1556 n[1].e = target; in save_BindTexture()
1557 n[2].ui = texture; in save_BindTexture()
1571 Node *n; in save_Bitmap() local
1573 n = alloc_instruction(ctx, OPCODE_BITMAP, 6 + POINTER_DWORDS); in save_Bitmap()
1574 if (n) { in save_Bitmap()
1575 n[1].i = (GLint) width; in save_Bitmap()
1576 n[2].i = (GLint) height; in save_Bitmap()
1577 n[3].f = xorig; in save_Bitmap()
1578 n[4].f = yorig; in save_Bitmap()
1579 n[5].f = xmove; in save_Bitmap()
1580 n[6].f = ymove; in save_Bitmap()
1581 save_pointer(&n[7], in save_Bitmap()
1596 Node *n; in save_BlendEquation() local
1598 n = alloc_instruction(ctx, OPCODE_BLEND_EQUATION, 1); in save_BlendEquation()
1599 if (n) { in save_BlendEquation()
1600 n[1].e = mode; in save_BlendEquation()
1612 Node *n; in save_BlendEquationSeparateEXT() local
1614 n = alloc_instruction(ctx, OPCODE_BLEND_EQUATION_SEPARATE, 2); in save_BlendEquationSeparateEXT()
1615 if (n) { in save_BlendEquationSeparateEXT()
1616 n[1].e = modeRGB; in save_BlendEquationSeparateEXT()
1617 n[2].e = modeA; in save_BlendEquationSeparateEXT()
1630 Node *n; in save_BlendFuncSeparateEXT() local
1632 n = alloc_instruction(ctx, OPCODE_BLEND_FUNC_SEPARATE, 4); in save_BlendFuncSeparateEXT()
1633 if (n) { in save_BlendFuncSeparateEXT()
1634 n[1].e = sfactorRGB; in save_BlendFuncSeparateEXT()
1635 n[2].e = dfactorRGB; in save_BlendFuncSeparateEXT()
1636 n[3].e = sfactorA; in save_BlendFuncSeparateEXT()
1637 n[4].e = dfactorA; in save_BlendFuncSeparateEXT()
1657 Node *n; in save_BlendColor() local
1659 n = alloc_instruction(ctx, OPCODE_BLEND_COLOR, 4); in save_BlendColor()
1660 if (n) { in save_BlendColor()
1661 n[1].f = red; in save_BlendColor()
1662 n[2].f = green; in save_BlendColor()
1663 n[3].f = blue; in save_BlendColor()
1664 n[4].f = alpha; in save_BlendColor()
1677 Node *n; in save_BlendFuncSeparatei() local
1679 n = alloc_instruction(ctx, OPCODE_BLEND_FUNC_SEPARATE_I, 5); in save_BlendFuncSeparatei()
1680 if (n) { in save_BlendFuncSeparatei()
1681 n[1].ui = buf; in save_BlendFuncSeparatei()
1682 n[2].e = sfactorRGB; in save_BlendFuncSeparatei()
1683 n[3].e = dfactorRGB; in save_BlendFuncSeparatei()
1684 n[4].e = sfactorA; in save_BlendFuncSeparatei()
1685 n[5].e = dfactorA; in save_BlendFuncSeparatei()
1698 Node *n; in save_BlendFunci() local
1700 n = alloc_instruction(ctx, OPCODE_BLEND_FUNC_I, 3); in save_BlendFunci()
1701 if (n) { in save_BlendFunci()
1702 n[1].ui = buf; in save_BlendFunci()
1703 n[2].e = sfactor; in save_BlendFunci()
1704 n[3].e = dfactor; in save_BlendFunci()
1716 Node *n; in save_BlendEquationi() local
1718 n = alloc_instruction(ctx, OPCODE_BLEND_EQUATION_I, 2); in save_BlendEquationi()
1719 if (n) { in save_BlendEquationi()
1720 n[1].ui = buf; in save_BlendEquationi()
1721 n[2].e = mode; in save_BlendEquationi()
1733 Node *n; in save_BlendEquationSeparatei() local
1735 n = alloc_instruction(ctx, OPCODE_BLEND_EQUATION_SEPARATE_I, 3); in save_BlendEquationSeparatei()
1736 if (n) { in save_BlendEquationSeparatei()
1737 n[1].ui = buf; in save_BlendEquationSeparatei()
1738 n[2].e = modeRGB; in save_BlendEquationSeparatei()
1739 n[3].e = modeA; in save_BlendEquationSeparatei()
1851 Node *n; in save_CallList() local
1854 n = alloc_instruction(ctx, OPCODE_CALL_LIST, 1); in save_CallList()
1855 if (n) { in save_CallList()
1856 n[1].ui = list; in save_CallList()
1875 Node *n; in save_CallLists() local
1910 n = alloc_instruction(ctx, OPCODE_CALL_LISTS, 2 + POINTER_DWORDS); in save_CallLists()
1911 if (n) { in save_CallLists()
1912 n[1].i = num; in save_CallLists()
1913 n[2].e = type; in save_CallLists()
1914 save_pointer(&n[3], lists_copy); in save_CallLists()
1932 Node *n; in save_Clear() local
1934 n = alloc_instruction(ctx, OPCODE_CLEAR, 1); in save_Clear()
1935 if (n) { in save_Clear()
1936 n[1].bf = mask; in save_Clear()
1948 Node *n; in save_ClearBufferiv() local
1950 n = alloc_instruction(ctx, OPCODE_CLEAR_BUFFER_IV, 6); in save_ClearBufferiv()
1951 if (n) { in save_ClearBufferiv()
1952 n[1].e = buffer; in save_ClearBufferiv()
1953 n[2].i = drawbuffer; in save_ClearBufferiv()
1954 n[3].i = value[0]; in save_ClearBufferiv()
1956 n[4].i = value[1]; in save_ClearBufferiv()
1957 n[5].i = value[2]; in save_ClearBufferiv()
1958 n[6].i = value[3]; in save_ClearBufferiv()
1961 n[4].i = 0; in save_ClearBufferiv()
1962 n[5].i = 0; in save_ClearBufferiv()
1963 n[6].i = 0; in save_ClearBufferiv()
1976 Node *n; in save_ClearBufferuiv() local
1978 n = alloc_instruction(ctx, OPCODE_CLEAR_BUFFER_UIV, 6); in save_ClearBufferuiv()
1979 if (n) { in save_ClearBufferuiv()
1980 n[1].e = buffer; in save_ClearBufferuiv()
1981 n[2].i = drawbuffer; in save_ClearBufferuiv()
1982 n[3].ui = value[0]; in save_ClearBufferuiv()
1984 n[4].ui = value[1]; in save_ClearBufferuiv()
1985 n[5].ui = value[2]; in save_ClearBufferuiv()
1986 n[6].ui = value[3]; in save_ClearBufferuiv()
1989 n[4].ui = 0; in save_ClearBufferuiv()
1990 n[5].ui = 0; in save_ClearBufferuiv()
1991 n[6].ui = 0; in save_ClearBufferuiv()
2004 Node *n; in save_ClearBufferfv() local
2006 n = alloc_instruction(ctx, OPCODE_CLEAR_BUFFER_FV, 6); in save_ClearBufferfv()
2007 if (n) { in save_ClearBufferfv()
2008 n[1].e = buffer; in save_ClearBufferfv()
2009 n[2].i = drawbuffer; in save_ClearBufferfv()
2010 n[3].f = value[0]; in save_ClearBufferfv()
2012 n[4].f = value[1]; in save_ClearBufferfv()
2013 n[5].f = value[2]; in save_ClearBufferfv()
2014 n[6].f = value[3]; in save_ClearBufferfv()
2017 n[4].f = 0.0F; in save_ClearBufferfv()
2018 n[5].f = 0.0F; in save_ClearBufferfv()
2019 n[6].f = 0.0F; in save_ClearBufferfv()
2033 Node *n; in save_ClearBufferfi() local
2035 n = alloc_instruction(ctx, OPCODE_CLEAR_BUFFER_FI, 4); in save_ClearBufferfi()
2036 if (n) { in save_ClearBufferfi()
2037 n[1].e = buffer; in save_ClearBufferfi()
2038 n[2].i = drawbuffer; in save_ClearBufferfi()
2039 n[3].f = depth; in save_ClearBufferfi()
2040 n[4].i = stencil; in save_ClearBufferfi()
2052 Node *n; in save_ClearAccum() local
2054 n = alloc_instruction(ctx, OPCODE_CLEAR_ACCUM, 4); in save_ClearAccum()
2055 if (n) { in save_ClearAccum()
2056 n[1].f = red; in save_ClearAccum()
2057 n[2].f = green; in save_ClearAccum()
2058 n[3].f = blue; in save_ClearAccum()
2059 n[4].f = alpha; in save_ClearAccum()
2071 Node *n; in save_ClearColor() local
2073 n = alloc_instruction(ctx, OPCODE_CLEAR_COLOR, 4); in save_ClearColor()
2074 if (n) { in save_ClearColor()
2075 n[1].f = red; in save_ClearColor()
2076 n[2].f = green; in save_ClearColor()
2077 n[3].f = blue; in save_ClearColor()
2078 n[4].f = alpha; in save_ClearColor()
2090 Node *n; in save_ClearDepth() local
2092 n = alloc_instruction(ctx, OPCODE_CLEAR_DEPTH, 1); in save_ClearDepth()
2093 if (n) { in save_ClearDepth()
2094 n[1].f = (GLfloat) depth; in save_ClearDepth()
2106 Node *n; in save_ClearIndex() local
2108 n = alloc_instruction(ctx, OPCODE_CLEAR_INDEX, 1); in save_ClearIndex()
2109 if (n) { in save_ClearIndex()
2110 n[1].f = c; in save_ClearIndex()
2122 Node *n; in save_ClearStencil() local
2124 n = alloc_instruction(ctx, OPCODE_CLEAR_STENCIL, 1); in save_ClearStencil()
2125 if (n) { in save_ClearStencil()
2126 n[1].i = s; in save_ClearStencil()
2138 Node *n; in save_ClipPlane() local
2140 n = alloc_instruction(ctx, OPCODE_CLIP_PLANE, 5); in save_ClipPlane()
2141 if (n) { in save_ClipPlane()
2142 n[1].e = plane; in save_ClipPlane()
2143 n[2].f = (GLfloat) equ[0]; in save_ClipPlane()
2144 n[3].f = (GLfloat) equ[1]; in save_ClipPlane()
2145 n[4].f = (GLfloat) equ[2]; in save_ClipPlane()
2146 n[5].f = (GLfloat) equ[3]; in save_ClipPlane()
2160 Node *n; in save_ColorMask() local
2162 n = alloc_instruction(ctx, OPCODE_COLOR_MASK, 4); in save_ColorMask()
2163 if (n) { in save_ColorMask()
2164 n[1].b = red; in save_ColorMask()
2165 n[2].b = green; in save_ColorMask()
2166 n[3].b = blue; in save_ColorMask()
2167 n[4].b = alpha; in save_ColorMask()
2180 Node *n; in save_ColorMaskIndexed() local
2182 n = alloc_instruction(ctx, OPCODE_COLOR_MASK_INDEXED, 5); in save_ColorMaskIndexed()
2183 if (n) { in save_ColorMaskIndexed()
2184 n[1].ui = buf; in save_ColorMaskIndexed()
2185 n[2].b = red; in save_ColorMaskIndexed()
2186 n[3].b = green; in save_ColorMaskIndexed()
2187 n[4].b = blue; in save_ColorMaskIndexed()
2188 n[5].b = alpha; in save_ColorMaskIndexed()
2200 Node *n; in save_ColorMaterial() local
2203 n = alloc_instruction(ctx, OPCODE_COLOR_MATERIAL, 2); in save_ColorMaterial()
2204 if (n) { in save_ColorMaterial()
2205 n[1].e = face; in save_ColorMaterial()
2206 n[2].e = mode; in save_ColorMaterial()
2218 Node *n; in save_CopyPixels() local
2220 n = alloc_instruction(ctx, OPCODE_COPY_PIXELS, 5); in save_CopyPixels()
2221 if (n) { in save_CopyPixels()
2222 n[1].i = x; in save_CopyPixels()
2223 n[2].i = y; in save_CopyPixels()
2224 n[3].i = (GLint) width; in save_CopyPixels()
2225 n[4].i = (GLint) height; in save_CopyPixels()
2226 n[5].e = type; in save_CopyPixels()
2240 Node *n; in save_CopyTexImage1D() local
2242 n = alloc_instruction(ctx, OPCODE_COPY_TEX_IMAGE1D, 7); in save_CopyTexImage1D()
2243 if (n) { in save_CopyTexImage1D()
2244 n[1].e = target; in save_CopyTexImage1D()
2245 n[2].i = level; in save_CopyTexImage1D()
2246 n[3].e = internalformat; in save_CopyTexImage1D()
2247 n[4].i = x; in save_CopyTexImage1D()
2248 n[5].i = y; in save_CopyTexImage1D()
2249 n[6].i = width; in save_CopyTexImage1D()
2250 n[7].i = border; in save_CopyTexImage1D()
2266 Node *n; in save_CopyTexImage2D() local
2268 n = alloc_instruction(ctx, OPCODE_COPY_TEX_IMAGE2D, 8); in save_CopyTexImage2D()
2269 if (n) { in save_CopyTexImage2D()
2270 n[1].e = target; in save_CopyTexImage2D()
2271 n[2].i = level; in save_CopyTexImage2D()
2272 n[3].e = internalformat; in save_CopyTexImage2D()
2273 n[4].i = x; in save_CopyTexImage2D()
2274 n[5].i = y; in save_CopyTexImage2D()
2275 n[6].i = width; in save_CopyTexImage2D()
2276 n[7].i = height; in save_CopyTexImage2D()
2277 n[8].i = border; in save_CopyTexImage2D()
2292 Node *n; in save_CopyTexSubImage1D() local
2294 n = alloc_instruction(ctx, OPCODE_COPY_TEX_SUB_IMAGE1D, 6); in save_CopyTexSubImage1D()
2295 if (n) { in save_CopyTexSubImage1D()
2296 n[1].e = target; in save_CopyTexSubImage1D()
2297 n[2].i = level; in save_CopyTexSubImage1D()
2298 n[3].i = xoffset; in save_CopyTexSubImage1D()
2299 n[4].i = x; in save_CopyTexSubImage1D()
2300 n[5].i = y; in save_CopyTexSubImage1D()
2301 n[6].i = width; in save_CopyTexSubImage1D()
2316 Node *n; in save_CopyTexSubImage2D() local
2318 n = alloc_instruction(ctx, OPCODE_COPY_TEX_SUB_IMAGE2D, 8); in save_CopyTexSubImage2D()
2319 if (n) { in save_CopyTexSubImage2D()
2320 n[1].e = target; in save_CopyTexSubImage2D()
2321 n[2].i = level; in save_CopyTexSubImage2D()
2322 n[3].i = xoffset; in save_CopyTexSubImage2D()
2323 n[4].i = yoffset; in save_CopyTexSubImage2D()
2324 n[5].i = x; in save_CopyTexSubImage2D()
2325 n[6].i = y; in save_CopyTexSubImage2D()
2326 n[7].i = width; in save_CopyTexSubImage2D()
2327 n[8].i = height; in save_CopyTexSubImage2D()
2342 Node *n; in save_CopyTexSubImage3D() local
2344 n = alloc_instruction(ctx, OPCODE_COPY_TEX_SUB_IMAGE3D, 9); in save_CopyTexSubImage3D()
2345 if (n) { in save_CopyTexSubImage3D()
2346 n[1].e = target; in save_CopyTexSubImage3D()
2347 n[2].i = level; in save_CopyTexSubImage3D()
2348 n[3].i = xoffset; in save_CopyTexSubImage3D()
2349 n[4].i = yoffset; in save_CopyTexSubImage3D()
2350 n[5].i = zoffset; in save_CopyTexSubImage3D()
2351 n[6].i = x; in save_CopyTexSubImage3D()
2352 n[7].i = y; in save_CopyTexSubImage3D()
2353 n[8].i = width; in save_CopyTexSubImage3D()
2354 n[9].i = height; in save_CopyTexSubImage3D()
2368 Node *n; in save_CullFace() local
2370 n = alloc_instruction(ctx, OPCODE_CULL_FACE, 1); in save_CullFace()
2371 if (n) { in save_CullFace()
2372 n[1].e = mode; in save_CullFace()
2384 Node *n; in save_DepthFunc() local
2386 n = alloc_instruction(ctx, OPCODE_DEPTH_FUNC, 1); in save_DepthFunc()
2387 if (n) { in save_DepthFunc()
2388 n[1].e = func; in save_DepthFunc()
2400 Node *n; in save_DepthMask() local
2402 n = alloc_instruction(ctx, OPCODE_DEPTH_MASK, 1); in save_DepthMask()
2403 if (n) { in save_DepthMask()
2404 n[1].b = mask; in save_DepthMask()
2416 Node *n; in save_DepthRange() local
2418 n = alloc_instruction(ctx, OPCODE_DEPTH_RANGE, 2); in save_DepthRange()
2419 if (n) { in save_DepthRange()
2420 n[1].f = (GLfloat) nearval; in save_DepthRange()
2421 n[2].f = (GLfloat) farval; in save_DepthRange()
2433 Node *n; in save_Disable() local
2435 n = alloc_instruction(ctx, OPCODE_DISABLE, 1); in save_Disable()
2436 if (n) { in save_Disable()
2437 n[1].e = cap; in save_Disable()
2449 Node *n; in save_DisableIndexed() local
2451 n = alloc_instruction(ctx, OPCODE_DISABLE_INDEXED, 2); in save_DisableIndexed()
2452 if (n) { in save_DisableIndexed()
2453 n[1].ui = index; in save_DisableIndexed()
2454 n[2].e = cap; in save_DisableIndexed()
2466 Node *n; in save_DrawBuffer() local
2468 n = alloc_instruction(ctx, OPCODE_DRAW_BUFFER, 1); in save_DrawBuffer()
2469 if (n) { in save_DrawBuffer()
2470 n[1].e = mode; in save_DrawBuffer()
2483 Node *n; in save_DrawPixels() local
2487 n = alloc_instruction(ctx, OPCODE_DRAW_PIXELS, 4 + POINTER_DWORDS); in save_DrawPixels()
2488 if (n) { in save_DrawPixels()
2489 n[1].i = width; in save_DrawPixels()
2490 n[2].i = height; in save_DrawPixels()
2491 n[3].e = format; in save_DrawPixels()
2492 n[4].e = type; in save_DrawPixels()
2493 save_pointer(&n[5], in save_DrawPixels()
2508 Node *n; in save_Enable() local
2510 n = alloc_instruction(ctx, OPCODE_ENABLE, 1); in save_Enable()
2511 if (n) { in save_Enable()
2512 n[1].e = cap; in save_Enable()
2525 Node *n; in save_EnableIndexed() local
2527 n = alloc_instruction(ctx, OPCODE_ENABLE_INDEXED, 2); in save_EnableIndexed()
2528 if (n) { in save_EnableIndexed()
2529 n[1].ui = index; in save_EnableIndexed()
2530 n[2].e = cap; in save_EnableIndexed()
2543 Node *n; in save_EvalMesh1() local
2545 n = alloc_instruction(ctx, OPCODE_EVALMESH1, 3); in save_EvalMesh1()
2546 if (n) { in save_EvalMesh1()
2547 n[1].e = mode; in save_EvalMesh1()
2548 n[2].i = i1; in save_EvalMesh1()
2549 n[3].i = i2; in save_EvalMesh1()
2561 Node *n; in save_EvalMesh2() local
2563 n = alloc_instruction(ctx, OPCODE_EVALMESH2, 5); in save_EvalMesh2()
2564 if (n) { in save_EvalMesh2()
2565 n[1].e = mode; in save_EvalMesh2()
2566 n[2].i = i1; in save_EvalMesh2()
2567 n[3].i = i2; in save_EvalMesh2()
2568 n[4].i = j1; in save_EvalMesh2()
2569 n[5].i = j2; in save_EvalMesh2()
2583 Node *n; in save_Fogfv() local
2585 n = alloc_instruction(ctx, OPCODE_FOG, 5); in save_Fogfv()
2586 if (n) { in save_Fogfv()
2587 n[1].e = pname; in save_Fogfv()
2588 n[2].f = params[0]; in save_Fogfv()
2589 n[3].f = params[1]; in save_Fogfv()
2590 n[4].f = params[2]; in save_Fogfv()
2591 n[5].f = params[3]; in save_Fogfv()
2652 Node *n; in save_FrontFace() local
2654 n = alloc_instruction(ctx, OPCODE_FRONT_FACE, 1); in save_FrontFace()
2655 if (n) { in save_FrontFace()
2656 n[1].e = mode; in save_FrontFace()
2669 Node *n; in save_Frustum() local
2671 n = alloc_instruction(ctx, OPCODE_FRUSTUM, 6); in save_Frustum()
2672 if (n) { in save_Frustum()
2673 n[1].f = (GLfloat) left; in save_Frustum()
2674 n[2].f = (GLfloat) right; in save_Frustum()
2675 n[3].f = (GLfloat) bottom; in save_Frustum()
2676 n[4].f = (GLfloat) top; in save_Frustum()
2677 n[5].f = (GLfloat) nearval; in save_Frustum()
2678 n[6].f = (GLfloat) farval; in save_Frustum()
2690 Node *n; in save_Hint() local
2692 n = alloc_instruction(ctx, OPCODE_HINT, 2); in save_Hint()
2693 if (n) { in save_Hint()
2694 n[1].e = target; in save_Hint()
2695 n[2].e = mode; in save_Hint()
2707 Node *n; in save_IndexMask() local
2709 n = alloc_instruction(ctx, OPCODE_INDEX_MASK, 1); in save_IndexMask()
2710 if (n) { in save_IndexMask()
2711 n[1].ui = mask; in save_IndexMask()
2735 Node *n; in save_Lightfv() local
2737 n = alloc_instruction(ctx, OPCODE_LIGHT, 6); in save_Lightfv()
2738 if (n) { in save_Lightfv()
2740 n[1].e = light; in save_Lightfv()
2741 n[2].e = pname; in save_Lightfv()
2777 n[3 + i].f = params[i]; in save_Lightfv()
2849 Node *n; in save_LightModelfv() local
2851 n = alloc_instruction(ctx, OPCODE_LIGHT_MODEL, 5); in save_LightModelfv()
2852 if (n) { in save_LightModelfv()
2853 n[1].e = pname; in save_LightModelfv()
2854 n[2].f = params[0]; in save_LightModelfv()
2855 n[3].f = params[1]; in save_LightModelfv()
2856 n[4].f = params[2]; in save_LightModelfv()
2857 n[5].f = params[3]; in save_LightModelfv()
2916 Node *n; in save_LineStipple() local
2918 n = alloc_instruction(ctx, OPCODE_LINE_STIPPLE, 2); in save_LineStipple()
2919 if (n) { in save_LineStipple()
2920 n[1].i = factor; in save_LineStipple()
2921 n[2].us = pattern; in save_LineStipple()
2933 Node *n; in save_LineWidth() local
2935 n = alloc_instruction(ctx, OPCODE_LINE_WIDTH, 1); in save_LineWidth()
2936 if (n) { in save_LineWidth()
2937 n[1].f = width; in save_LineWidth()
2949 Node *n; in save_ListBase() local
2951 n = alloc_instruction(ctx, OPCODE_LIST_BASE, 1); in save_ListBase()
2952 if (n) { in save_ListBase()
2953 n[1].ui = base; in save_ListBase()
2977 Node *n; in save_LoadMatrixf() local
2979 n = alloc_instruction(ctx, OPCODE_LOAD_MATRIX, 16); in save_LoadMatrixf()
2980 if (n) { in save_LoadMatrixf()
2983 n[1 + i].f = m[i]; in save_LoadMatrixf()
3008 Node *n; in save_LoadName() local
3010 n = alloc_instruction(ctx, OPCODE_LOAD_NAME, 1); in save_LoadName()
3011 if (n) { in save_LoadName()
3012 n[1].ui = name; in save_LoadName()
3024 Node *n; in save_LogicOp() local
3026 n = alloc_instruction(ctx, OPCODE_LOGIC_OP, 1); in save_LogicOp()
3027 if (n) { in save_LogicOp()
3028 n[1].e = opcode; in save_LogicOp()
3041 Node *n; in save_Map1d() local
3043 n = alloc_instruction(ctx, OPCODE_MAP1, 5 + POINTER_DWORDS); in save_Map1d()
3044 if (n) { in save_Map1d()
3046 n[1].e = target; in save_Map1d()
3047 n[2].f = (GLfloat) u1; in save_Map1d()
3048 n[3].f = (GLfloat) u2; in save_Map1d()
3049 n[4].i = _mesa_evaluator_components(target); /* stride */ in save_Map1d()
3050 n[5].i = order; in save_Map1d()
3051 save_pointer(&n[6], pnts); in save_Map1d()
3063 Node *n; in save_Map1f() local
3065 n = alloc_instruction(ctx, OPCODE_MAP1, 5 + POINTER_DWORDS); in save_Map1f()
3066 if (n) { in save_Map1f()
3068 n[1].e = target; in save_Map1f()
3069 n[2].f = u1; in save_Map1f()
3070 n[3].f = u2; in save_Map1f()
3071 n[4].i = _mesa_evaluator_components(target); /* stride */ in save_Map1f()
3072 n[5].i = order; in save_Map1f()
3073 save_pointer(&n[6], pnts); in save_Map1f()
3088 Node *n; in save_Map2d() local
3090 n = alloc_instruction(ctx, OPCODE_MAP2, 9 + POINTER_DWORDS); in save_Map2d()
3091 if (n) { in save_Map2d()
3094 n[1].e = target; in save_Map2d()
3095 n[2].f = (GLfloat) u1; in save_Map2d()
3096 n[3].f = (GLfloat) u2; in save_Map2d()
3097 n[4].f = (GLfloat) v1; in save_Map2d()
3098 n[5].f = (GLfloat) v2; in save_Map2d()
3100 n[6].i = _mesa_evaluator_components(target) * vorder; /*ustride */ in save_Map2d()
3101 n[7].i = _mesa_evaluator_components(target); /*vstride */ in save_Map2d()
3102 n[8].i = uorder; in save_Map2d()
3103 n[9].i = vorder; in save_Map2d()
3104 save_pointer(&n[10], pnts); in save_Map2d()
3121 Node *n; in save_Map2f() local
3123 n = alloc_instruction(ctx, OPCODE_MAP2, 9 + POINTER_DWORDS); in save_Map2f()
3124 if (n) { in save_Map2f()
3127 n[1].e = target; in save_Map2f()
3128 n[2].f = u1; in save_Map2f()
3129 n[3].f = u2; in save_Map2f()
3130 n[4].f = v1; in save_Map2f()
3131 n[5].f = v2; in save_Map2f()
3133 n[6].i = _mesa_evaluator_components(target) * vorder; /*ustride */ in save_Map2f()
3134 n[7].i = _mesa_evaluator_components(target); /*vstride */ in save_Map2f()
3135 n[8].i = uorder; in save_Map2f()
3136 n[9].i = vorder; in save_Map2f()
3137 save_pointer(&n[10], pnts); in save_Map2f()
3150 Node *n; in save_MapGrid1f() local
3152 n = alloc_instruction(ctx, OPCODE_MAPGRID1, 3); in save_MapGrid1f()
3153 if (n) { in save_MapGrid1f()
3154 n[1].i = un; in save_MapGrid1f()
3155 n[2].f = u1; in save_MapGrid1f()
3156 n[3].f = u2; in save_MapGrid1f()
3176 Node *n; in save_MapGrid2f() local
3178 n = alloc_instruction(ctx, OPCODE_MAPGRID2, 6); in save_MapGrid2f()
3179 if (n) { in save_MapGrid2f()
3180 n[1].i = un; in save_MapGrid2f()
3181 n[2].f = u1; in save_MapGrid2f()
3182 n[3].f = u2; in save_MapGrid2f()
3183 n[4].i = vn; in save_MapGrid2f()
3184 n[5].f = v1; in save_MapGrid2f()
3185 n[6].f = v2; in save_MapGrid2f()
3207 Node *n; in save_MatrixMode() local
3209 n = alloc_instruction(ctx, OPCODE_MATRIX_MODE, 1); in save_MatrixMode()
3210 if (n) { in save_MatrixMode()
3211 n[1].e = mode; in save_MatrixMode()
3223 Node *n; in save_MultMatrixf() local
3225 n = alloc_instruction(ctx, OPCODE_MULT_MATRIX, 16); in save_MultMatrixf()
3226 if (n) { in save_MultMatrixf()
3229 n[1 + i].f = m[i]; in save_MultMatrixf()
3267 Node *n; in save_Ortho() local
3269 n = alloc_instruction(ctx, OPCODE_ORTHO, 6); in save_Ortho()
3270 if (n) { in save_Ortho()
3271 n[1].f = (GLfloat) left; in save_Ortho()
3272 n[2].f = (GLfloat) right; in save_Ortho()
3273 n[3].f = (GLfloat) bottom; in save_Ortho()
3274 n[4].f = (GLfloat) top; in save_Ortho()
3275 n[5].f = (GLfloat) nearval; in save_Ortho()
3276 n[6].f = (GLfloat) farval; in save_Ortho()
3288 Node *n; in save_PixelMapfv() local
3290 n = alloc_instruction(ctx, OPCODE_PIXEL_MAP, 2 + POINTER_DWORDS); in save_PixelMapfv()
3291 if (n) { in save_PixelMapfv()
3292 n[1].e = map; in save_PixelMapfv()
3293 n[2].i = mapsize; in save_PixelMapfv()
3294 save_pointer(&n[3], memdup(values, mapsize * sizeof(GLfloat))); in save_PixelMapfv()
3344 Node *n; in save_PixelTransferf() local
3346 n = alloc_instruction(ctx, OPCODE_PIXEL_TRANSFER, 2); in save_PixelTransferf()
3347 if (n) { in save_PixelTransferf()
3348 n[1].e = pname; in save_PixelTransferf()
3349 n[2].f = param; in save_PixelTransferf()
3368 Node *n; in save_PixelZoom() local
3370 n = alloc_instruction(ctx, OPCODE_PIXEL_ZOOM, 2); in save_PixelZoom()
3371 if (n) { in save_PixelZoom()
3372 n[1].f = xfactor; in save_PixelZoom()
3373 n[2].f = yfactor; in save_PixelZoom()
3385 Node *n; in save_PointParameterfvEXT() local
3387 n = alloc_instruction(ctx, OPCODE_POINT_PARAMETERS, 4); in save_PointParameterfvEXT()
3388 if (n) { in save_PointParameterfvEXT()
3389 n[1].e = pname; in save_PointParameterfvEXT()
3390 n[2].f = params[0]; in save_PointParameterfvEXT()
3391 n[3].f = params[1]; in save_PointParameterfvEXT()
3392 n[4].f = params[2]; in save_PointParameterfvEXT()
3432 Node *n; in save_PointSize() local
3434 n = alloc_instruction(ctx, OPCODE_POINT_SIZE, 1); in save_PointSize()
3435 if (n) { in save_PointSize()
3436 n[1].f = size; in save_PointSize()
3448 Node *n; in save_PolygonMode() local
3450 n = alloc_instruction(ctx, OPCODE_POLYGON_MODE, 2); in save_PolygonMode()
3451 if (n) { in save_PolygonMode()
3452 n[1].e = face; in save_PolygonMode()
3453 n[2].e = mode; in save_PolygonMode()
3465 Node *n; in save_PolygonStipple() local
3469 n = alloc_instruction(ctx, OPCODE_POLYGON_STIPPLE, POINTER_DWORDS); in save_PolygonStipple()
3470 if (n) { in save_PolygonStipple()
3471 save_pointer(&n[1], in save_PolygonStipple()
3485 Node *n; in save_PolygonOffset() local
3487 n = alloc_instruction(ctx, OPCODE_POLYGON_OFFSET, 2); in save_PolygonOffset()
3488 if (n) { in save_PolygonOffset()
3489 n[1].f = factor; in save_PolygonOffset()
3490 n[2].f = units; in save_PolygonOffset()
3510 Node *n; in save_PolygonOffsetClampEXT() local
3512 n = alloc_instruction(ctx, OPCODE_POLYGON_OFFSET_CLAMP, 3); in save_PolygonOffsetClampEXT()
3513 if (n) { in save_PolygonOffsetClampEXT()
3514 n[1].f = factor; in save_PolygonOffsetClampEXT()
3515 n[2].f = units; in save_PolygonOffsetClampEXT()
3516 n[3].f = clamp; in save_PolygonOffsetClampEXT()
3568 Node *n; in save_PrioritizeTextures() local
3569 n = alloc_instruction(ctx, OPCODE_PRIORITIZE_TEXTURE, 2); in save_PrioritizeTextures()
3570 if (n) { in save_PrioritizeTextures()
3571 n[1].ui = textures[i]; in save_PrioritizeTextures()
3572 n[2].f = priorities[i]; in save_PrioritizeTextures()
3585 Node *n; in save_PushAttrib() local
3587 n = alloc_instruction(ctx, OPCODE_PUSH_ATTRIB, 1); in save_PushAttrib()
3588 if (n) { in save_PushAttrib()
3589 n[1].bf = mask; in save_PushAttrib()
3613 Node *n; in save_PushName() local
3615 n = alloc_instruction(ctx, OPCODE_PUSH_NAME, 1); in save_PushName()
3616 if (n) { in save_PushName()
3617 n[1].ui = name; in save_PushName()
3629 Node *n; in save_RasterPos4f() local
3631 n = alloc_instruction(ctx, OPCODE_RASTER_POS, 4); in save_RasterPos4f()
3632 if (n) { in save_RasterPos4f()
3633 n[1].f = x; in save_RasterPos4f()
3634 n[2].f = y; in save_RasterPos4f()
3635 n[3].f = z; in save_RasterPos4f()
3636 n[4].f = w; in save_RasterPos4f()
3788 Node *n; in save_PassThrough() local
3790 n = alloc_instruction(ctx, OPCODE_PASSTHROUGH, 1); in save_PassThrough()
3791 if (n) { in save_PassThrough()
3792 n[1].f = token; in save_PassThrough()
3804 Node *n; in save_ReadBuffer() local
3806 n = alloc_instruction(ctx, OPCODE_READ_BUFFER, 1); in save_ReadBuffer()
3807 if (n) { in save_ReadBuffer()
3808 n[1].e = mode; in save_ReadBuffer()
3820 Node *n; in save_Rotatef() local
3822 n = alloc_instruction(ctx, OPCODE_ROTATE, 4); in save_Rotatef()
3823 if (n) { in save_Rotatef()
3824 n[1].f = angle; in save_Rotatef()
3825 n[2].f = x; in save_Rotatef()
3826 n[3].f = y; in save_Rotatef()
3827 n[4].f = z; in save_Rotatef()
3846 Node *n; in save_Scalef() local
3848 n = alloc_instruction(ctx, OPCODE_SCALE, 3); in save_Scalef()
3849 if (n) { in save_Scalef()
3850 n[1].f = x; in save_Scalef()
3851 n[2].f = y; in save_Scalef()
3852 n[3].f = z; in save_Scalef()
3871 Node *n; in save_Scissor() local
3873 n = alloc_instruction(ctx, OPCODE_SCISSOR, 4); in save_Scissor()
3874 if (n) { in save_Scissor()
3875 n[1].i = x; in save_Scissor()
3876 n[2].i = y; in save_Scissor()
3877 n[3].i = width; in save_Scissor()
3878 n[4].i = height; in save_Scissor()
3890 Node *n; in save_ShadeModel() local
3908 n = alloc_instruction(ctx, OPCODE_SHADE_MODEL, 1); in save_ShadeModel()
3909 if (n) { in save_ShadeModel()
3910 n[1].e = mode; in save_ShadeModel()
3919 Node *n; in save_StencilFunc() local
3921 n = alloc_instruction(ctx, OPCODE_STENCIL_FUNC, 3); in save_StencilFunc()
3922 if (n) { in save_StencilFunc()
3923 n[1].e = func; in save_StencilFunc()
3924 n[2].i = ref; in save_StencilFunc()
3925 n[3].ui = mask; in save_StencilFunc()
3937 Node *n; in save_StencilMask() local
3939 n = alloc_instruction(ctx, OPCODE_STENCIL_MASK, 1); in save_StencilMask()
3940 if (n) { in save_StencilMask()
3941 n[1].ui = mask; in save_StencilMask()
3953 Node *n; in save_StencilOp() local
3955 n = alloc_instruction(ctx, OPCODE_STENCIL_OP, 3); in save_StencilOp()
3956 if (n) { in save_StencilOp()
3957 n[1].e = fail; in save_StencilOp()
3958 n[2].e = zfail; in save_StencilOp()
3959 n[3].e = zpass; in save_StencilOp()
3971 Node *n; in save_StencilFuncSeparate() local
3973 n = alloc_instruction(ctx, OPCODE_STENCIL_FUNC_SEPARATE, 4); in save_StencilFuncSeparate()
3974 if (n) { in save_StencilFuncSeparate()
3975 n[1].e = face; in save_StencilFuncSeparate()
3976 n[2].e = func; in save_StencilFuncSeparate()
3977 n[3].i = ref; in save_StencilFuncSeparate()
3978 n[4].ui = mask; in save_StencilFuncSeparate()
3991 Node *n; in save_StencilFuncSeparateATI() local
3994 n = alloc_instruction(ctx, OPCODE_STENCIL_FUNC_SEPARATE, 4); in save_StencilFuncSeparateATI()
3995 if (n) { in save_StencilFuncSeparateATI()
3996 n[1].e = GL_FRONT; in save_StencilFuncSeparateATI()
3997 n[2].e = frontfunc; in save_StencilFuncSeparateATI()
3998 n[3].i = ref; in save_StencilFuncSeparateATI()
3999 n[4].ui = mask; in save_StencilFuncSeparateATI()
4002 n = alloc_instruction(ctx, OPCODE_STENCIL_FUNC_SEPARATE, 4); in save_StencilFuncSeparateATI()
4003 if (n) { in save_StencilFuncSeparateATI()
4004 n[1].e = GL_BACK; in save_StencilFuncSeparateATI()
4005 n[2].e = backfunc; in save_StencilFuncSeparateATI()
4006 n[3].i = ref; in save_StencilFuncSeparateATI()
4007 n[4].ui = mask; in save_StencilFuncSeparateATI()
4020 Node *n; in save_StencilMaskSeparate() local
4022 n = alloc_instruction(ctx, OPCODE_STENCIL_MASK_SEPARATE, 2); in save_StencilMaskSeparate()
4023 if (n) { in save_StencilMaskSeparate()
4024 n[1].e = face; in save_StencilMaskSeparate()
4025 n[2].ui = mask; in save_StencilMaskSeparate()
4037 Node *n; in save_StencilOpSeparate() local
4039 n = alloc_instruction(ctx, OPCODE_STENCIL_OP_SEPARATE, 4); in save_StencilOpSeparate()
4040 if (n) { in save_StencilOpSeparate()
4041 n[1].e = face; in save_StencilOpSeparate()
4042 n[2].e = fail; in save_StencilOpSeparate()
4043 n[3].e = zfail; in save_StencilOpSeparate()
4044 n[4].e = zpass; in save_StencilOpSeparate()
4056 Node *n; in save_TexEnvfv() local
4058 n = alloc_instruction(ctx, OPCODE_TEXENV, 6); in save_TexEnvfv()
4059 if (n) { in save_TexEnvfv()
4060 n[1].e = target; in save_TexEnvfv()
4061 n[2].e = pname; in save_TexEnvfv()
4063 n[3].f = params[0]; in save_TexEnvfv()
4064 n[4].f = params[1]; in save_TexEnvfv()
4065 n[5].f = params[2]; in save_TexEnvfv()
4066 n[6].f = params[3]; in save_TexEnvfv()
4069 n[3].f = params[0]; in save_TexEnvfv()
4070 n[4].f = n[5].f = n[6].f = 0.0F; in save_TexEnvfv()
4121 Node *n; in save_TexGenfv() local
4123 n = alloc_instruction(ctx, OPCODE_TEXGEN, 6); in save_TexGenfv()
4124 if (n) { in save_TexGenfv()
4125 n[1].e = coord; in save_TexGenfv()
4126 n[2].e = pname; in save_TexGenfv()
4127 n[3].f = params[0]; in save_TexGenfv()
4128 n[4].f = params[1]; in save_TexGenfv()
4129 n[5].f = params[2]; in save_TexGenfv()
4130 n[6].f = params[3]; in save_TexGenfv()
4196 Node *n; in save_TexParameterfv() local
4198 n = alloc_instruction(ctx, OPCODE_TEXPARAMETER, 6); in save_TexParameterfv()
4199 if (n) { in save_TexParameterfv()
4200 n[1].e = target; in save_TexParameterfv()
4201 n[2].e = pname; in save_TexParameterfv()
4202 n[3].f = params[0]; in save_TexParameterfv()
4203 n[4].f = params[1]; in save_TexParameterfv()
4204 n[5].f = params[2]; in save_TexParameterfv()
4205 n[6].f = params[3]; in save_TexParameterfv()
4256 Node *n; in save_TexImage1D() local
4258 n = alloc_instruction(ctx, OPCODE_TEX_IMAGE1D, 7 + POINTER_DWORDS); in save_TexImage1D()
4259 if (n) { in save_TexImage1D()
4260 n[1].e = target; in save_TexImage1D()
4261 n[2].i = level; in save_TexImage1D()
4262 n[3].i = components; in save_TexImage1D()
4263 n[4].i = (GLint) width; in save_TexImage1D()
4264 n[5].i = border; in save_TexImage1D()
4265 n[6].e = format; in save_TexImage1D()
4266 n[7].e = type; in save_TexImage1D()
4267 save_pointer(&n[8], in save_TexImage1D()
4292 Node *n; in save_TexImage2D() local
4294 n = alloc_instruction(ctx, OPCODE_TEX_IMAGE2D, 8 + POINTER_DWORDS); in save_TexImage2D()
4295 if (n) { in save_TexImage2D()
4296 n[1].e = target; in save_TexImage2D()
4297 n[2].i = level; in save_TexImage2D()
4298 n[3].i = components; in save_TexImage2D()
4299 n[4].i = (GLint) width; in save_TexImage2D()
4300 n[5].i = (GLint) height; in save_TexImage2D()
4301 n[6].i = border; in save_TexImage2D()
4302 n[7].e = format; in save_TexImage2D()
4303 n[8].e = type; in save_TexImage2D()
4304 save_pointer(&n[9], in save_TexImage2D()
4331 Node *n; in save_TexImage3D() local
4333 n = alloc_instruction(ctx, OPCODE_TEX_IMAGE3D, 9 + POINTER_DWORDS); in save_TexImage3D()
4334 if (n) { in save_TexImage3D()
4335 n[1].e = target; in save_TexImage3D()
4336 n[2].i = level; in save_TexImage3D()
4337 n[3].i = (GLint) internalFormat; in save_TexImage3D()
4338 n[4].i = (GLint) width; in save_TexImage3D()
4339 n[5].i = (GLint) height; in save_TexImage3D()
4340 n[6].i = (GLint) depth; in save_TexImage3D()
4341 n[7].i = border; in save_TexImage3D()
4342 n[8].e = format; in save_TexImage3D()
4343 n[9].e = type; in save_TexImage3D()
4344 save_pointer(&n[10], in save_TexImage3D()
4363 Node *n; in save_TexSubImage1D() local
4367 n = alloc_instruction(ctx, OPCODE_TEX_SUB_IMAGE1D, 6 + POINTER_DWORDS); in save_TexSubImage1D()
4368 if (n) { in save_TexSubImage1D()
4369 n[1].e = target; in save_TexSubImage1D()
4370 n[2].i = level; in save_TexSubImage1D()
4371 n[3].i = xoffset; in save_TexSubImage1D()
4372 n[4].i = (GLint) width; in save_TexSubImage1D()
4373 n[5].e = format; in save_TexSubImage1D()
4374 n[6].e = type; in save_TexSubImage1D()
4375 save_pointer(&n[7], in save_TexSubImage1D()
4393 Node *n; in save_TexSubImage2D() local
4397 n = alloc_instruction(ctx, OPCODE_TEX_SUB_IMAGE2D, 8 + POINTER_DWORDS); in save_TexSubImage2D()
4398 if (n) { in save_TexSubImage2D()
4399 n[1].e = target; in save_TexSubImage2D()
4400 n[2].i = level; in save_TexSubImage2D()
4401 n[3].i = xoffset; in save_TexSubImage2D()
4402 n[4].i = yoffset; in save_TexSubImage2D()
4403 n[5].i = (GLint) width; in save_TexSubImage2D()
4404 n[6].i = (GLint) height; in save_TexSubImage2D()
4405 n[7].e = format; in save_TexSubImage2D()
4406 n[8].e = type; in save_TexSubImage2D()
4407 save_pointer(&n[9], in save_TexSubImage2D()
4425 Node *n; in save_TexSubImage3D() local
4429 n = alloc_instruction(ctx, OPCODE_TEX_SUB_IMAGE3D, 10 + POINTER_DWORDS); in save_TexSubImage3D()
4430 if (n) { in save_TexSubImage3D()
4431 n[1].e = target; in save_TexSubImage3D()
4432 n[2].i = level; in save_TexSubImage3D()
4433 n[3].i = xoffset; in save_TexSubImage3D()
4434 n[4].i = yoffset; in save_TexSubImage3D()
4435 n[5].i = zoffset; in save_TexSubImage3D()
4436 n[6].i = (GLint) width; in save_TexSubImage3D()
4437 n[7].i = (GLint) height; in save_TexSubImage3D()
4438 n[8].i = (GLint) depth; in save_TexSubImage3D()
4439 n[9].e = format; in save_TexSubImage3D()
4440 n[10].e = type; in save_TexSubImage3D()
4441 save_pointer(&n[11], in save_TexSubImage3D()
4458 Node *n; in save_Translatef() local
4460 n = alloc_instruction(ctx, OPCODE_TRANSLATE, 3); in save_Translatef()
4461 if (n) { in save_Translatef()
4462 n[1].f = x; in save_Translatef()
4463 n[2].f = y; in save_Translatef()
4464 n[3].f = z; in save_Translatef()
4484 Node *n; in save_Viewport() local
4486 n = alloc_instruction(ctx, OPCODE_VIEWPORT, 4); in save_Viewport()
4487 if (n) { in save_Viewport()
4488 n[1].i = x; in save_Viewport()
4489 n[2].i = y; in save_Viewport()
4490 n[3].i = (GLint) width; in save_Viewport()
4491 n[4].i = (GLint) height; in save_Viewport()
4503 Node *n; in save_WindowPos4fMESA() local
4505 n = alloc_instruction(ctx, OPCODE_WINDOW_POS, 4); in save_WindowPos4fMESA()
4506 if (n) { in save_WindowPos4fMESA()
4507 n[1].f = x; in save_WindowPos4fMESA()
4508 n[2].f = y; in save_WindowPos4fMESA()
4509 n[3].f = z; in save_WindowPos4fMESA()
4510 n[4].f = w; in save_WindowPos4fMESA()
4664 Node *n; in save_ActiveTextureARB() local
4666 n = alloc_instruction(ctx, OPCODE_ACTIVE_TEXTURE, 1); in save_ActiveTextureARB()
4667 if (n) { in save_ActiveTextureARB()
4668 n[1].e = target; in save_ActiveTextureARB()
4747 Node *n; in save_CompressedTexImage1DARB() local
4750 n = alloc_instruction(ctx, OPCODE_COMPRESSED_TEX_IMAGE_1D, in save_CompressedTexImage1DARB()
4752 if (n) { in save_CompressedTexImage1DARB()
4753 n[1].e = target; in save_CompressedTexImage1DARB()
4754 n[2].i = level; in save_CompressedTexImage1DARB()
4755 n[3].e = internalFormat; in save_CompressedTexImage1DARB()
4756 n[4].i = (GLint) width; in save_CompressedTexImage1DARB()
4757 n[5].i = border; in save_CompressedTexImage1DARB()
4758 n[6].i = imageSize; in save_CompressedTexImage1DARB()
4759 save_pointer(&n[7], in save_CompressedTexImage1DARB()
4785 Node *n; in save_CompressedTexImage2DARB() local
4788 n = alloc_instruction(ctx, OPCODE_COMPRESSED_TEX_IMAGE_2D, in save_CompressedTexImage2DARB()
4790 if (n) { in save_CompressedTexImage2DARB()
4791 n[1].e = target; in save_CompressedTexImage2DARB()
4792 n[2].i = level; in save_CompressedTexImage2DARB()
4793 n[3].e = internalFormat; in save_CompressedTexImage2DARB()
4794 n[4].i = (GLint) width; in save_CompressedTexImage2DARB()
4795 n[5].i = (GLint) height; in save_CompressedTexImage2DARB()
4796 n[6].i = border; in save_CompressedTexImage2DARB()
4797 n[7].i = imageSize; in save_CompressedTexImage2DARB()
4798 save_pointer(&n[8], in save_CompressedTexImage2DARB()
4824 Node *n; in save_CompressedTexImage3DARB() local
4827 n = alloc_instruction(ctx, OPCODE_COMPRESSED_TEX_IMAGE_3D, in save_CompressedTexImage3DARB()
4829 if (n) { in save_CompressedTexImage3DARB()
4830 n[1].e = target; in save_CompressedTexImage3DARB()
4831 n[2].i = level; in save_CompressedTexImage3DARB()
4832 n[3].e = internalFormat; in save_CompressedTexImage3DARB()
4833 n[4].i = (GLint) width; in save_CompressedTexImage3DARB()
4834 n[5].i = (GLint) height; in save_CompressedTexImage3DARB()
4835 n[6].i = (GLint) depth; in save_CompressedTexImage3DARB()
4836 n[7].i = border; in save_CompressedTexImage3DARB()
4837 n[8].i = imageSize; in save_CompressedTexImage3DARB()
4838 save_pointer(&n[9], in save_CompressedTexImage3DARB()
4856 Node *n; in save_CompressedTexSubImage1DARB() local
4860 n = alloc_instruction(ctx, OPCODE_COMPRESSED_TEX_SUB_IMAGE_1D, in save_CompressedTexSubImage1DARB()
4862 if (n) { in save_CompressedTexSubImage1DARB()
4863 n[1].e = target; in save_CompressedTexSubImage1DARB()
4864 n[2].i = level; in save_CompressedTexSubImage1DARB()
4865 n[3].i = xoffset; in save_CompressedTexSubImage1DARB()
4866 n[4].i = (GLint) width; in save_CompressedTexSubImage1DARB()
4867 n[5].e = format; in save_CompressedTexSubImage1DARB()
4868 n[6].i = imageSize; in save_CompressedTexSubImage1DARB()
4869 save_pointer(&n[7], in save_CompressedTexSubImage1DARB()
4886 Node *n; in save_CompressedTexSubImage2DARB() local
4890 n = alloc_instruction(ctx, OPCODE_COMPRESSED_TEX_SUB_IMAGE_2D, in save_CompressedTexSubImage2DARB()
4892 if (n) { in save_CompressedTexSubImage2DARB()
4893 n[1].e = target; in save_CompressedTexSubImage2DARB()
4894 n[2].i = level; in save_CompressedTexSubImage2DARB()
4895 n[3].i = xoffset; in save_CompressedTexSubImage2DARB()
4896 n[4].i = yoffset; in save_CompressedTexSubImage2DARB()
4897 n[5].i = (GLint) width; in save_CompressedTexSubImage2DARB()
4898 n[6].i = (GLint) height; in save_CompressedTexSubImage2DARB()
4899 n[7].e = format; in save_CompressedTexSubImage2DARB()
4900 n[8].i = imageSize; in save_CompressedTexSubImage2DARB()
4901 save_pointer(&n[9], in save_CompressedTexSubImage2DARB()
4918 Node *n; in save_CompressedTexSubImage3DARB() local
4922 n = alloc_instruction(ctx, OPCODE_COMPRESSED_TEX_SUB_IMAGE_3D, in save_CompressedTexSubImage3DARB()
4924 if (n) { in save_CompressedTexSubImage3DARB()
4925 n[1].e = target; in save_CompressedTexSubImage3DARB()
4926 n[2].i = level; in save_CompressedTexSubImage3DARB()
4927 n[3].i = xoffset; in save_CompressedTexSubImage3DARB()
4928 n[4].i = yoffset; in save_CompressedTexSubImage3DARB()
4929 n[5].i = zoffset; in save_CompressedTexSubImage3DARB()
4930 n[6].i = (GLint) width; in save_CompressedTexSubImage3DARB()
4931 n[7].i = (GLint) height; in save_CompressedTexSubImage3DARB()
4932 n[8].i = (GLint) depth; in save_CompressedTexSubImage3DARB()
4933 n[9].e = format; in save_CompressedTexSubImage3DARB()
4934 n[10].i = imageSize; in save_CompressedTexSubImage3DARB()
4935 save_pointer(&n[11], in save_CompressedTexSubImage3DARB()
4952 Node *n; in save_SampleCoverageARB() local
4954 n = alloc_instruction(ctx, OPCODE_SAMPLE_COVERAGE, 2); in save_SampleCoverageARB()
4955 if (n) { in save_SampleCoverageARB()
4956 n[1].f = value; in save_SampleCoverageARB()
4957 n[2].b = invert; in save_SampleCoverageARB()
4972 Node *n; in save_BindProgramARB() local
4974 n = alloc_instruction(ctx, OPCODE_BIND_PROGRAM_ARB, 2); in save_BindProgramARB()
4975 if (n) { in save_BindProgramARB()
4976 n[1].e = target; in save_BindProgramARB()
4977 n[2].ui = id; in save_BindProgramARB()
4989 Node *n; in save_ProgramEnvParameter4fARB() local
4991 n = alloc_instruction(ctx, OPCODE_PROGRAM_ENV_PARAMETER_ARB, 6); in save_ProgramEnvParameter4fARB()
4992 if (n) { in save_ProgramEnvParameter4fARB()
4993 n[1].e = target; in save_ProgramEnvParameter4fARB()
4994 n[2].ui = index; in save_ProgramEnvParameter4fARB()
4995 n[3].f = x; in save_ProgramEnvParameter4fARB()
4996 n[4].f = y; in save_ProgramEnvParameter4fARB()
4997 n[5].f = z; in save_ProgramEnvParameter4fARB()
4998 n[6].f = w; in save_ProgramEnvParameter4fARB()
5020 Node *n; in save_ProgramEnvParameters4fvEXT() local
5028 n = alloc_instruction(ctx, OPCODE_PROGRAM_ENV_PARAMETER_ARB, 6); in save_ProgramEnvParameters4fvEXT()
5029 if (n) { in save_ProgramEnvParameters4fvEXT()
5030 n[1].e = target; in save_ProgramEnvParameters4fvEXT()
5031 n[2].ui = index; in save_ProgramEnvParameters4fvEXT()
5032 n[3].f = p[0]; in save_ProgramEnvParameters4fvEXT()
5033 n[4].f = p[1]; in save_ProgramEnvParameters4fvEXT()
5034 n[5].f = p[2]; in save_ProgramEnvParameters4fvEXT()
5035 n[6].f = p[3]; in save_ProgramEnvParameters4fvEXT()
5073 Node *n; in save_ProgramLocalParameter4fARB() local
5075 n = alloc_instruction(ctx, OPCODE_PROGRAM_LOCAL_PARAMETER_ARB, 6); in save_ProgramLocalParameter4fARB()
5076 if (n) { in save_ProgramLocalParameter4fARB()
5077 n[1].e = target; in save_ProgramLocalParameter4fARB()
5078 n[2].ui = index; in save_ProgramLocalParameter4fARB()
5079 n[3].f = x; in save_ProgramLocalParameter4fARB()
5080 n[4].f = y; in save_ProgramLocalParameter4fARB()
5081 n[5].f = z; in save_ProgramLocalParameter4fARB()
5082 n[6].f = w; in save_ProgramLocalParameter4fARB()
5095 Node *n; in save_ProgramLocalParameter4fvARB() local
5097 n = alloc_instruction(ctx, OPCODE_PROGRAM_LOCAL_PARAMETER_ARB, 6); in save_ProgramLocalParameter4fvARB()
5098 if (n) { in save_ProgramLocalParameter4fvARB()
5099 n[1].e = target; in save_ProgramLocalParameter4fvARB()
5100 n[2].ui = index; in save_ProgramLocalParameter4fvARB()
5101 n[3].f = params[0]; in save_ProgramLocalParameter4fvARB()
5102 n[4].f = params[1]; in save_ProgramLocalParameter4fvARB()
5103 n[5].f = params[2]; in save_ProgramLocalParameter4fvARB()
5104 n[6].f = params[3]; in save_ProgramLocalParameter4fvARB()
5117 Node *n; in save_ProgramLocalParameters4fvEXT() local
5125 n = alloc_instruction(ctx, OPCODE_PROGRAM_LOCAL_PARAMETER_ARB, 6); in save_ProgramLocalParameters4fvEXT()
5126 if (n) { in save_ProgramLocalParameters4fvEXT()
5127 n[1].e = target; in save_ProgramLocalParameters4fvEXT()
5128 n[2].ui = index; in save_ProgramLocalParameters4fvEXT()
5129 n[3].f = p[0]; in save_ProgramLocalParameters4fvEXT()
5130 n[4].f = p[1]; in save_ProgramLocalParameters4fvEXT()
5131 n[5].f = p[2]; in save_ProgramLocalParameters4fvEXT()
5132 n[6].f = p[3]; in save_ProgramLocalParameters4fvEXT()
5150 Node *n; in save_ProgramLocalParameter4dARB() local
5152 n = alloc_instruction(ctx, OPCODE_PROGRAM_LOCAL_PARAMETER_ARB, 6); in save_ProgramLocalParameter4dARB()
5153 if (n) { in save_ProgramLocalParameter4dARB()
5154 n[1].e = target; in save_ProgramLocalParameter4dARB()
5155 n[2].ui = index; in save_ProgramLocalParameter4dARB()
5156 n[3].f = (GLfloat) x; in save_ProgramLocalParameter4dARB()
5157 n[4].f = (GLfloat) y; in save_ProgramLocalParameter4dARB()
5158 n[5].f = (GLfloat) z; in save_ProgramLocalParameter4dARB()
5159 n[6].f = (GLfloat) w; in save_ProgramLocalParameter4dARB()
5172 Node *n; in save_ProgramLocalParameter4dvARB() local
5174 n = alloc_instruction(ctx, OPCODE_PROGRAM_LOCAL_PARAMETER_ARB, 6); in save_ProgramLocalParameter4dvARB()
5175 if (n) { in save_ProgramLocalParameter4dvARB()
5176 n[1].e = target; in save_ProgramLocalParameter4dvARB()
5177 n[2].ui = index; in save_ProgramLocalParameter4dvARB()
5178 n[3].f = (GLfloat) params[0]; in save_ProgramLocalParameter4dvARB()
5179 n[4].f = (GLfloat) params[1]; in save_ProgramLocalParameter4dvARB()
5180 n[5].f = (GLfloat) params[2]; in save_ProgramLocalParameter4dvARB()
5181 n[6].f = (GLfloat) params[3]; in save_ProgramLocalParameter4dvARB()
5194 Node *n; in save_ActiveStencilFaceEXT() local
5196 n = alloc_instruction(ctx, OPCODE_ACTIVE_STENCIL_FACE_EXT, 1); in save_ActiveStencilFaceEXT()
5197 if (n) { in save_ActiveStencilFaceEXT()
5198 n[1].e = face; in save_ActiveStencilFaceEXT()
5211 Node *n; in save_DepthBoundsEXT() local
5213 n = alloc_instruction(ctx, OPCODE_DEPTH_BOUNDS_EXT, 2); in save_DepthBoundsEXT()
5214 if (n) { in save_DepthBoundsEXT()
5215 n[1].f = (GLfloat) zmin; in save_DepthBoundsEXT()
5216 n[2].f = (GLfloat) zmax; in save_DepthBoundsEXT()
5230 Node *n; in save_ProgramStringARB() local
5234 n = alloc_instruction(ctx, OPCODE_PROGRAM_STRING_ARB, 3 + POINTER_DWORDS); in save_ProgramStringARB()
5235 if (n) { in save_ProgramStringARB()
5242 n[1].e = target; in save_ProgramStringARB()
5243 n[2].e = format; in save_ProgramStringARB()
5244 n[3].i = len; in save_ProgramStringARB()
5245 save_pointer(&n[4], programCopy); in save_ProgramStringARB()
5257 Node *n; in save_BeginQueryARB() local
5259 n = alloc_instruction(ctx, OPCODE_BEGIN_QUERY_ARB, 2); in save_BeginQueryARB()
5260 if (n) { in save_BeginQueryARB()
5261 n[1].e = target; in save_BeginQueryARB()
5262 n[2].ui = id; in save_BeginQueryARB()
5273 Node *n; in save_EndQueryARB() local
5275 n = alloc_instruction(ctx, OPCODE_END_QUERY_ARB, 1); in save_EndQueryARB()
5276 if (n) { in save_EndQueryARB()
5277 n[1].e = target; in save_EndQueryARB()
5288 Node *n; in save_QueryCounter() local
5290 n = alloc_instruction(ctx, OPCODE_QUERY_COUNTER, 2); in save_QueryCounter()
5291 if (n) { in save_QueryCounter()
5292 n[1].ui = id; in save_QueryCounter()
5293 n[2].e = target; in save_QueryCounter()
5304 Node *n; in save_BeginQueryIndexed() local
5306 n = alloc_instruction(ctx, OPCODE_BEGIN_QUERY_INDEXED, 3); in save_BeginQueryIndexed()
5307 if (n) { in save_BeginQueryIndexed()
5308 n[1].e = target; in save_BeginQueryIndexed()
5309 n[2].ui = index; in save_BeginQueryIndexed()
5310 n[3].ui = id; in save_BeginQueryIndexed()
5321 Node *n; in save_EndQueryIndexed() local
5323 n = alloc_instruction(ctx, OPCODE_END_QUERY_INDEXED, 2); in save_EndQueryIndexed()
5324 if (n) { in save_EndQueryIndexed()
5325 n[1].e = target; in save_EndQueryIndexed()
5326 n[2].ui = index; in save_EndQueryIndexed()
5338 Node *n; in save_DrawBuffersARB() local
5340 n = alloc_instruction(ctx, OPCODE_DRAW_BUFFERS_ARB, 1 + MAX_DRAW_BUFFERS); in save_DrawBuffersARB()
5341 if (n) { in save_DrawBuffersARB()
5343 n[1].i = count; in save_DrawBuffersARB()
5347 n[2 + i].e = buffers[i]; in save_DrawBuffersARB()
5359 Node *n; in save_BindFragmentShaderATI() local
5361 n = alloc_instruction(ctx, OPCODE_BIND_FRAGMENT_SHADER_ATI, 1); in save_BindFragmentShaderATI()
5362 if (n) { in save_BindFragmentShaderATI()
5363 n[1].ui = id; in save_BindFragmentShaderATI()
5374 Node *n; in save_SetFragmentShaderConstantATI() local
5376 n = alloc_instruction(ctx, OPCODE_SET_FRAGMENT_SHADER_CONSTANTS_ATI, 5); in save_SetFragmentShaderConstantATI()
5377 if (n) { in save_SetFragmentShaderConstantATI()
5378 n[1].ui = dst; in save_SetFragmentShaderConstantATI()
5379 n[2].f = value[0]; in save_SetFragmentShaderConstantATI()
5380 n[3].f = value[1]; in save_SetFragmentShaderConstantATI()
5381 n[4].f = value[2]; in save_SetFragmentShaderConstantATI()
5382 n[5].f = value[3]; in save_SetFragmentShaderConstantATI()
5393 Node *n; in save_Attr1fNV() local
5395 n = alloc_instruction(ctx, OPCODE_ATTR_1F_NV, 2); in save_Attr1fNV()
5396 if (n) { in save_Attr1fNV()
5397 n[1].e = attr; in save_Attr1fNV()
5398 n[2].f = x; in save_Attr1fNV()
5414 Node *n; in save_Attr2fNV() local
5416 n = alloc_instruction(ctx, OPCODE_ATTR_2F_NV, 3); in save_Attr2fNV()
5417 if (n) { in save_Attr2fNV()
5418 n[1].e = attr; in save_Attr2fNV()
5419 n[2].f = x; in save_Attr2fNV()
5420 n[3].f = y; in save_Attr2fNV()
5436 Node *n; in save_Attr3fNV() local
5438 n = alloc_instruction(ctx, OPCODE_ATTR_3F_NV, 4); in save_Attr3fNV()
5439 if (n) { in save_Attr3fNV()
5440 n[1].e = attr; in save_Attr3fNV()
5441 n[2].f = x; in save_Attr3fNV()
5442 n[3].f = y; in save_Attr3fNV()
5443 n[4].f = z; in save_Attr3fNV()
5459 Node *n; in save_Attr4fNV() local
5461 n = alloc_instruction(ctx, OPCODE_ATTR_4F_NV, 5); in save_Attr4fNV()
5462 if (n) { in save_Attr4fNV()
5463 n[1].e = attr; in save_Attr4fNV()
5464 n[2].f = x; in save_Attr4fNV()
5465 n[3].f = y; in save_Attr4fNV()
5466 n[4].f = z; in save_Attr4fNV()
5467 n[5].f = w; in save_Attr4fNV()
5484 Node *n; in save_Attr1fARB() local
5486 n = alloc_instruction(ctx, OPCODE_ATTR_1F_ARB, 2); in save_Attr1fARB()
5487 if (n) { in save_Attr1fARB()
5488 n[1].e = attr; in save_Attr1fARB()
5489 n[2].f = x; in save_Attr1fARB()
5505 Node *n; in save_Attr2fARB() local
5507 n = alloc_instruction(ctx, OPCODE_ATTR_2F_ARB, 3); in save_Attr2fARB()
5508 if (n) { in save_Attr2fARB()
5509 n[1].e = attr; in save_Attr2fARB()
5510 n[2].f = x; in save_Attr2fARB()
5511 n[3].f = y; in save_Attr2fARB()
5527 Node *n; in save_Attr3fARB() local
5529 n = alloc_instruction(ctx, OPCODE_ATTR_3F_ARB, 4); in save_Attr3fARB()
5530 if (n) { in save_Attr3fARB()
5531 n[1].e = attr; in save_Attr3fARB()
5532 n[2].f = x; in save_Attr3fARB()
5533 n[3].f = y; in save_Attr3fARB()
5534 n[4].f = z; in save_Attr3fARB()
5550 Node *n; in save_Attr4fARB() local
5552 n = alloc_instruction(ctx, OPCODE_ATTR_4F_ARB, 5); in save_Attr4fARB()
5553 if (n) { in save_Attr4fARB()
5554 n[1].e = attr; in save_Attr4fARB()
5555 n[2].f = x; in save_Attr4fARB()
5556 n[3].f = y; in save_Attr4fARB()
5557 n[4].f = z; in save_Attr4fARB()
5558 n[5].f = w; in save_Attr4fARB()
5575 Node *n; in save_EvalCoord1f() local
5577 n = alloc_instruction(ctx, OPCODE_EVAL_C1, 1); in save_EvalCoord1f()
5578 if (n) { in save_EvalCoord1f()
5579 n[1].f = x; in save_EvalCoord1f()
5596 Node *n; in save_EvalCoord2f() local
5598 n = alloc_instruction(ctx, OPCODE_EVAL_C2, 2); in save_EvalCoord2f()
5599 if (n) { in save_EvalCoord2f()
5600 n[1].f = x; in save_EvalCoord2f()
5601 n[2].f = y; in save_EvalCoord2f()
5619 Node *n; in save_EvalPoint1() local
5621 n = alloc_instruction(ctx, OPCODE_EVAL_P1, 1); in save_EvalPoint1()
5622 if (n) { in save_EvalPoint1()
5623 n[1].i = x; in save_EvalPoint1()
5634 Node *n; in save_EvalPoint2() local
5636 n = alloc_instruction(ctx, OPCODE_EVAL_P2, 2); in save_EvalPoint2()
5637 if (n) { in save_EvalPoint2()
5638 n[1].i = x; in save_EvalPoint2()
5639 n[2].i = y; in save_EvalPoint2()
5684 Node *n; in save_Materialfv() local
5747 n = alloc_instruction(ctx, OPCODE_MATERIAL, 6); in save_Materialfv()
5748 if (n) { in save_Materialfv()
5749 n[1].e = face; in save_Materialfv()
5750 n[2].e = pname; in save_Materialfv()
5752 n[3 + i].f = param[i]; in save_Materialfv()
5792 Node *n; in save_Rectf() local
5794 n = alloc_instruction(ctx, OPCODE_RECTF, 4); in save_Rectf()
5795 if (n) { in save_Rectf()
5796 n[1].f = a; in save_Rectf()
5797 n[2].f = b; in save_Rectf()
5798 n[3].f = c; in save_Rectf()
5799 n[4].f = d; in save_Rectf()
6117 Node *n; in save_BlitFramebufferEXT() local
6119 n = alloc_instruction(ctx, OPCODE_BLIT_FRAMEBUFFER, 10); in save_BlitFramebufferEXT()
6120 if (n) { in save_BlitFramebufferEXT()
6121 n[1].i = srcX0; in save_BlitFramebufferEXT()
6122 n[2].i = srcY0; in save_BlitFramebufferEXT()
6123 n[3].i = srcX1; in save_BlitFramebufferEXT()
6124 n[4].i = srcY1; in save_BlitFramebufferEXT()
6125 n[5].i = dstX0; in save_BlitFramebufferEXT()
6126 n[6].i = dstY0; in save_BlitFramebufferEXT()
6127 n[7].i = dstX1; in save_BlitFramebufferEXT()
6128 n[8].i = dstY1; in save_BlitFramebufferEXT()
6129 n[9].i = mask; in save_BlitFramebufferEXT()
6130 n[10].e = filter; in save_BlitFramebufferEXT()
6145 Node *n; in save_ProvokingVertexEXT() local
6147 n = alloc_instruction(ctx, OPCODE_PROVOKING_VERTEX, 1); in save_ProvokingVertexEXT()
6148 if (n) { in save_ProvokingVertexEXT()
6149 n[1].e = mode; in save_ProvokingVertexEXT()
6163 Node *n; in save_BeginTransformFeedback() local
6165 n = alloc_instruction(ctx, OPCODE_BEGIN_TRANSFORM_FEEDBACK, 1); in save_BeginTransformFeedback()
6166 if (n) { in save_BeginTransformFeedback()
6167 n[1].e = mode; in save_BeginTransformFeedback()
6191 Node *n; in save_BindTransformFeedback() local
6193 n = alloc_instruction(ctx, OPCODE_BIND_TRANSFORM_FEEDBACK, 2); in save_BindTransformFeedback()
6194 if (n) { in save_BindTransformFeedback()
6195 n[1].e = target; in save_BindTransformFeedback()
6196 n[2].ui = name; in save_BindTransformFeedback()
6229 Node *n; in save_DrawTransformFeedback() local
6231 n = alloc_instruction(ctx, OPCODE_DRAW_TRANSFORM_FEEDBACK, 2); in save_DrawTransformFeedback()
6232 if (n) { in save_DrawTransformFeedback()
6233 n[1].e = mode; in save_DrawTransformFeedback()
6234 n[2].ui = name; in save_DrawTransformFeedback()
6245 Node *n; in save_DrawTransformFeedbackStream() local
6247 n = alloc_instruction(ctx, OPCODE_DRAW_TRANSFORM_FEEDBACK_STREAM, 3); in save_DrawTransformFeedbackStream()
6248 if (n) { in save_DrawTransformFeedbackStream()
6249 n[1].e = mode; in save_DrawTransformFeedbackStream()
6250 n[2].ui = name; in save_DrawTransformFeedbackStream()
6251 n[3].ui = stream; in save_DrawTransformFeedbackStream()
6263 Node *n; in save_DrawTransformFeedbackInstanced() local
6265 n = alloc_instruction(ctx, OPCODE_DRAW_TRANSFORM_FEEDBACK_INSTANCED, 3); in save_DrawTransformFeedbackInstanced()
6266 if (n) { in save_DrawTransformFeedbackInstanced()
6267 n[1].e = mode; in save_DrawTransformFeedbackInstanced()
6268 n[2].ui = name; in save_DrawTransformFeedbackInstanced()
6269 n[3].si = primcount; in save_DrawTransformFeedbackInstanced()
6281 Node *n; in save_DrawTransformFeedbackStreamInstanced() local
6283 n = alloc_instruction(ctx, OPCODE_DRAW_TRANSFORM_FEEDBACK_STREAM_INSTANCED, 4); in save_DrawTransformFeedbackStreamInstanced()
6284 if (n) { in save_DrawTransformFeedbackStreamInstanced()
6285 n[1].e = mode; in save_DrawTransformFeedbackStreamInstanced()
6286 n[2].ui = name; in save_DrawTransformFeedbackStreamInstanced()
6287 n[3].ui = stream; in save_DrawTransformFeedbackStreamInstanced()
6288 n[4].si = primcount; in save_DrawTransformFeedbackStreamInstanced()
6300 Node *n; in save_UseProgram() local
6302 n = alloc_instruction(ctx, OPCODE_USE_PROGRAM, 1); in save_UseProgram()
6303 if (n) { in save_UseProgram()
6304 n[1].ui = program; in save_UseProgram()
6316 Node *n; in save_Uniform1fARB() local
6318 n = alloc_instruction(ctx, OPCODE_UNIFORM_1F, 2); in save_Uniform1fARB()
6319 if (n) { in save_Uniform1fARB()
6320 n[1].i = location; in save_Uniform1fARB()
6321 n[2].f = x; in save_Uniform1fARB()
6333 Node *n; in save_Uniform2fARB() local
6335 n = alloc_instruction(ctx, OPCODE_UNIFORM_2F, 3); in save_Uniform2fARB()
6336 if (n) { in save_Uniform2fARB()
6337 n[1].i = location; in save_Uniform2fARB()
6338 n[2].f = x; in save_Uniform2fARB()
6339 n[3].f = y; in save_Uniform2fARB()
6351 Node *n; in save_Uniform3fARB() local
6353 n = alloc_instruction(ctx, OPCODE_UNIFORM_3F, 4); in save_Uniform3fARB()
6354 if (n) { in save_Uniform3fARB()
6355 n[1].i = location; in save_Uniform3fARB()
6356 n[2].f = x; in save_Uniform3fARB()
6357 n[3].f = y; in save_Uniform3fARB()
6358 n[4].f = z; in save_Uniform3fARB()
6370 Node *n; in save_Uniform4fARB() local
6372 n = alloc_instruction(ctx, OPCODE_UNIFORM_4F, 5); in save_Uniform4fARB()
6373 if (n) { in save_Uniform4fARB()
6374 n[1].i = location; in save_Uniform4fARB()
6375 n[2].f = x; in save_Uniform4fARB()
6376 n[3].f = y; in save_Uniform4fARB()
6377 n[4].f = z; in save_Uniform4fARB()
6378 n[5].f = w; in save_Uniform4fARB()
6390 Node *n; in save_Uniform1fvARB() local
6392 n = alloc_instruction(ctx, OPCODE_UNIFORM_1FV, 2 + POINTER_DWORDS); in save_Uniform1fvARB()
6393 if (n) { in save_Uniform1fvARB()
6394 n[1].i = location; in save_Uniform1fvARB()
6395 n[2].i = count; in save_Uniform1fvARB()
6396 save_pointer(&n[3], memdup(v, count * 1 * sizeof(GLfloat))); in save_Uniform1fvARB()
6407 Node *n; in save_Uniform2fvARB() local
6409 n = alloc_instruction(ctx, OPCODE_UNIFORM_2FV, 2 + POINTER_DWORDS); in save_Uniform2fvARB()
6410 if (n) { in save_Uniform2fvARB()
6411 n[1].i = location; in save_Uniform2fvARB()
6412 n[2].i = count; in save_Uniform2fvARB()
6413 save_pointer(&n[3], memdup(v, count * 2 * sizeof(GLfloat))); in save_Uniform2fvARB()
6424 Node *n; in save_Uniform3fvARB() local
6426 n = alloc_instruction(ctx, OPCODE_UNIFORM_3FV, 2 + POINTER_DWORDS); in save_Uniform3fvARB()
6427 if (n) { in save_Uniform3fvARB()
6428 n[1].i = location; in save_Uniform3fvARB()
6429 n[2].i = count; in save_Uniform3fvARB()
6430 save_pointer(&n[3], memdup(v, count * 3 * sizeof(GLfloat))); in save_Uniform3fvARB()
6441 Node *n; in save_Uniform4fvARB() local
6443 n = alloc_instruction(ctx, OPCODE_UNIFORM_4FV, 2 + POINTER_DWORDS); in save_Uniform4fvARB()
6444 if (n) { in save_Uniform4fvARB()
6445 n[1].i = location; in save_Uniform4fvARB()
6446 n[2].i = count; in save_Uniform4fvARB()
6447 save_pointer(&n[3], memdup(v, count * 4 * sizeof(GLfloat))); in save_Uniform4fvARB()
6459 Node *n; in save_Uniform1iARB() local
6461 n = alloc_instruction(ctx, OPCODE_UNIFORM_1I, 2); in save_Uniform1iARB()
6462 if (n) { in save_Uniform1iARB()
6463 n[1].i = location; in save_Uniform1iARB()
6464 n[2].i = x; in save_Uniform1iARB()
6475 Node *n; in save_Uniform2iARB() local
6477 n = alloc_instruction(ctx, OPCODE_UNIFORM_2I, 3); in save_Uniform2iARB()
6478 if (n) { in save_Uniform2iARB()
6479 n[1].i = location; in save_Uniform2iARB()
6480 n[2].i = x; in save_Uniform2iARB()
6481 n[3].i = y; in save_Uniform2iARB()
6492 Node *n; in save_Uniform3iARB() local
6494 n = alloc_instruction(ctx, OPCODE_UNIFORM_3I, 4); in save_Uniform3iARB()
6495 if (n) { in save_Uniform3iARB()
6496 n[1].i = location; in save_Uniform3iARB()
6497 n[2].i = x; in save_Uniform3iARB()
6498 n[3].i = y; in save_Uniform3iARB()
6499 n[4].i = z; in save_Uniform3iARB()
6510 Node *n; in save_Uniform4iARB() local
6512 n = alloc_instruction(ctx, OPCODE_UNIFORM_4I, 5); in save_Uniform4iARB()
6513 if (n) { in save_Uniform4iARB()
6514 n[1].i = location; in save_Uniform4iARB()
6515 n[2].i = x; in save_Uniform4iARB()
6516 n[3].i = y; in save_Uniform4iARB()
6517 n[4].i = z; in save_Uniform4iARB()
6518 n[5].i = w; in save_Uniform4iARB()
6531 Node *n; in save_Uniform1ivARB() local
6533 n = alloc_instruction(ctx, OPCODE_UNIFORM_1IV, 2 + POINTER_DWORDS); in save_Uniform1ivARB()
6534 if (n) { in save_Uniform1ivARB()
6535 n[1].i = location; in save_Uniform1ivARB()
6536 n[2].i = count; in save_Uniform1ivARB()
6537 save_pointer(&n[3], memdup(v, count * 1 * sizeof(GLint))); in save_Uniform1ivARB()
6548 Node *n; in save_Uniform2ivARB() local
6550 n = alloc_instruction(ctx, OPCODE_UNIFORM_2IV, 2 + POINTER_DWORDS); in save_Uniform2ivARB()
6551 if (n) { in save_Uniform2ivARB()
6552 n[1].i = location; in save_Uniform2ivARB()
6553 n[2].i = count; in save_Uniform2ivARB()
6554 save_pointer(&n[3], memdup(v, count * 2 * sizeof(GLint))); in save_Uniform2ivARB()
6565 Node *n; in save_Uniform3ivARB() local
6567 n = alloc_instruction(ctx, OPCODE_UNIFORM_3IV, 2 + POINTER_DWORDS); in save_Uniform3ivARB()
6568 if (n) { in save_Uniform3ivARB()
6569 n[1].i = location; in save_Uniform3ivARB()
6570 n[2].i = count; in save_Uniform3ivARB()
6571 save_pointer(&n[3], memdup(v, count * 3 * sizeof(GLint))); in save_Uniform3ivARB()
6582 Node *n; in save_Uniform4ivARB() local
6584 n = alloc_instruction(ctx, OPCODE_UNIFORM_4IV, 2 + POINTER_DWORDS); in save_Uniform4ivARB()
6585 if (n) { in save_Uniform4ivARB()
6586 n[1].i = location; in save_Uniform4ivARB()
6587 n[2].i = count; in save_Uniform4ivARB()
6588 save_pointer(&n[3], memdup(v, count * 4 * sizeof(GLfloat))); in save_Uniform4ivARB()
6601 Node *n; in save_Uniform1ui() local
6603 n = alloc_instruction(ctx, OPCODE_UNIFORM_1UI, 2); in save_Uniform1ui()
6604 if (n) { in save_Uniform1ui()
6605 n[1].i = location; in save_Uniform1ui()
6606 n[2].i = x; in save_Uniform1ui()
6617 Node *n; in save_Uniform2ui() local
6619 n = alloc_instruction(ctx, OPCODE_UNIFORM_2UI, 3); in save_Uniform2ui()
6620 if (n) { in save_Uniform2ui()
6621 n[1].i = location; in save_Uniform2ui()
6622 n[2].i = x; in save_Uniform2ui()
6623 n[3].i = y; in save_Uniform2ui()
6634 Node *n; in save_Uniform3ui() local
6636 n = alloc_instruction(ctx, OPCODE_UNIFORM_3UI, 4); in save_Uniform3ui()
6637 if (n) { in save_Uniform3ui()
6638 n[1].i = location; in save_Uniform3ui()
6639 n[2].i = x; in save_Uniform3ui()
6640 n[3].i = y; in save_Uniform3ui()
6641 n[4].i = z; in save_Uniform3ui()
6652 Node *n; in save_Uniform4ui() local
6654 n = alloc_instruction(ctx, OPCODE_UNIFORM_4UI, 5); in save_Uniform4ui()
6655 if (n) { in save_Uniform4ui()
6656 n[1].i = location; in save_Uniform4ui()
6657 n[2].i = x; in save_Uniform4ui()
6658 n[3].i = y; in save_Uniform4ui()
6659 n[4].i = z; in save_Uniform4ui()
6660 n[5].i = w; in save_Uniform4ui()
6673 Node *n; in save_Uniform1uiv() local
6675 n = alloc_instruction(ctx, OPCODE_UNIFORM_1UIV, 2 + POINTER_DWORDS); in save_Uniform1uiv()
6676 if (n) { in save_Uniform1uiv()
6677 n[1].i = location; in save_Uniform1uiv()
6678 n[2].i = count; in save_Uniform1uiv()
6679 save_pointer(&n[3], memdup(v, count * 1 * sizeof(*v))); in save_Uniform1uiv()
6690 Node *n; in save_Uniform2uiv() local
6692 n = alloc_instruction(ctx, OPCODE_UNIFORM_2UIV, 2 + POINTER_DWORDS); in save_Uniform2uiv()
6693 if (n) { in save_Uniform2uiv()
6694 n[1].i = location; in save_Uniform2uiv()
6695 n[2].i = count; in save_Uniform2uiv()
6696 save_pointer(&n[3], memdup(v, count * 2 * sizeof(*v))); in save_Uniform2uiv()
6707 Node *n; in save_Uniform3uiv() local
6709 n = alloc_instruction(ctx, OPCODE_UNIFORM_3UIV, 2 + POINTER_DWORDS); in save_Uniform3uiv()
6710 if (n) { in save_Uniform3uiv()
6711 n[1].i = location; in save_Uniform3uiv()
6712 n[2].i = count; in save_Uniform3uiv()
6713 save_pointer(&n[3], memdup(v, count * 3 * sizeof(*v))); in save_Uniform3uiv()
6724 Node *n; in save_Uniform4uiv() local
6726 n = alloc_instruction(ctx, OPCODE_UNIFORM_4UIV, 2 + POINTER_DWORDS); in save_Uniform4uiv()
6727 if (n) { in save_Uniform4uiv()
6728 n[1].i = location; in save_Uniform4uiv()
6729 n[2].i = count; in save_Uniform4uiv()
6730 save_pointer(&n[3], memdup(v, count * 4 * sizeof(*v))); in save_Uniform4uiv()
6744 Node *n; in save_UniformMatrix2fvARB() local
6746 n = alloc_instruction(ctx, OPCODE_UNIFORM_MATRIX22, 3 + POINTER_DWORDS); in save_UniformMatrix2fvARB()
6747 if (n) { in save_UniformMatrix2fvARB()
6748 n[1].i = location; in save_UniformMatrix2fvARB()
6749 n[2].i = count; in save_UniformMatrix2fvARB()
6750 n[3].b = transpose; in save_UniformMatrix2fvARB()
6751 save_pointer(&n[4], memdup(m, count * 2 * 2 * sizeof(GLfloat))); in save_UniformMatrix2fvARB()
6763 Node *n; in save_UniformMatrix3fvARB() local
6765 n = alloc_instruction(ctx, OPCODE_UNIFORM_MATRIX33, 3 + POINTER_DWORDS); in save_UniformMatrix3fvARB()
6766 if (n) { in save_UniformMatrix3fvARB()
6767 n[1].i = location; in save_UniformMatrix3fvARB()
6768 n[2].i = count; in save_UniformMatrix3fvARB()
6769 n[3].b = transpose; in save_UniformMatrix3fvARB()
6770 save_pointer(&n[4], memdup(m, count * 3 * 3 * sizeof(GLfloat))); in save_UniformMatrix3fvARB()
6782 Node *n; in save_UniformMatrix4fvARB() local
6784 n = alloc_instruction(ctx, OPCODE_UNIFORM_MATRIX44, 3 + POINTER_DWORDS); in save_UniformMatrix4fvARB()
6785 if (n) { in save_UniformMatrix4fvARB()
6786 n[1].i = location; in save_UniformMatrix4fvARB()
6787 n[2].i = count; in save_UniformMatrix4fvARB()
6788 n[3].b = transpose; in save_UniformMatrix4fvARB()
6789 save_pointer(&n[4], memdup(m, count * 4 * 4 * sizeof(GLfloat))); in save_UniformMatrix4fvARB()
6802 Node *n; in save_UniformMatrix2x3fv() local
6804 n = alloc_instruction(ctx, OPCODE_UNIFORM_MATRIX23, 3 + POINTER_DWORDS); in save_UniformMatrix2x3fv()
6805 if (n) { in save_UniformMatrix2x3fv()
6806 n[1].i = location; in save_UniformMatrix2x3fv()
6807 n[2].i = count; in save_UniformMatrix2x3fv()
6808 n[3].b = transpose; in save_UniformMatrix2x3fv()
6809 save_pointer(&n[4], memdup(m, count * 2 * 3 * sizeof(GLfloat))); in save_UniformMatrix2x3fv()
6821 Node *n; in save_UniformMatrix3x2fv() local
6823 n = alloc_instruction(ctx, OPCODE_UNIFORM_MATRIX32, 3 + POINTER_DWORDS); in save_UniformMatrix3x2fv()
6824 if (n) { in save_UniformMatrix3x2fv()
6825 n[1].i = location; in save_UniformMatrix3x2fv()
6826 n[2].i = count; in save_UniformMatrix3x2fv()
6827 n[3].b = transpose; in save_UniformMatrix3x2fv()
6828 save_pointer(&n[4], memdup(m, count * 3 * 2 * sizeof(GLfloat))); in save_UniformMatrix3x2fv()
6841 Node *n; in save_UniformMatrix2x4fv() local
6843 n = alloc_instruction(ctx, OPCODE_UNIFORM_MATRIX24, 3 + POINTER_DWORDS); in save_UniformMatrix2x4fv()
6844 if (n) { in save_UniformMatrix2x4fv()
6845 n[1].i = location; in save_UniformMatrix2x4fv()
6846 n[2].i = count; in save_UniformMatrix2x4fv()
6847 n[3].b = transpose; in save_UniformMatrix2x4fv()
6848 save_pointer(&n[4], memdup(m, count * 2 * 4 * sizeof(GLfloat))); in save_UniformMatrix2x4fv()
6860 Node *n; in save_UniformMatrix4x2fv() local
6862 n = alloc_instruction(ctx, OPCODE_UNIFORM_MATRIX42, 3 + POINTER_DWORDS); in save_UniformMatrix4x2fv()
6863 if (n) { in save_UniformMatrix4x2fv()
6864 n[1].i = location; in save_UniformMatrix4x2fv()
6865 n[2].i = count; in save_UniformMatrix4x2fv()
6866 n[3].b = transpose; in save_UniformMatrix4x2fv()
6867 save_pointer(&n[4], memdup(m, count * 4 * 2 * sizeof(GLfloat))); in save_UniformMatrix4x2fv()
6880 Node *n; in save_UniformMatrix3x4fv() local
6882 n = alloc_instruction(ctx, OPCODE_UNIFORM_MATRIX34, 3 + POINTER_DWORDS); in save_UniformMatrix3x4fv()
6883 if (n) { in save_UniformMatrix3x4fv()
6884 n[1].i = location; in save_UniformMatrix3x4fv()
6885 n[2].i = count; in save_UniformMatrix3x4fv()
6886 n[3].b = transpose; in save_UniformMatrix3x4fv()
6887 save_pointer(&n[4], memdup(m, count * 3 * 4 * sizeof(GLfloat))); in save_UniformMatrix3x4fv()
6899 Node *n; in save_UniformMatrix4x3fv() local
6901 n = alloc_instruction(ctx, OPCODE_UNIFORM_MATRIX43, 3 + POINTER_DWORDS); in save_UniformMatrix4x3fv()
6902 if (n) { in save_UniformMatrix4x3fv()
6903 n[1].i = location; in save_UniformMatrix4x3fv()
6904 n[2].i = count; in save_UniformMatrix4x3fv()
6905 n[3].b = transpose; in save_UniformMatrix4x3fv()
6906 save_pointer(&n[4], memdup(m, count * 4 * 3 * sizeof(GLfloat))); in save_UniformMatrix4x3fv()
6917 Node *n; in save_UseProgramStages() local
6919 n = alloc_instruction(ctx, OPCODE_USE_PROGRAM_STAGES, 3); in save_UseProgramStages()
6920 if (n) { in save_UseProgramStages()
6921 n[1].ui = pipeline; in save_UseProgramStages()
6922 n[2].ui = stages; in save_UseProgramStages()
6923 n[3].ui = program; in save_UseProgramStages()
6934 Node *n; in save_ProgramUniform1f() local
6936 n = alloc_instruction(ctx, OPCODE_PROGRAM_UNIFORM_1F, 3); in save_ProgramUniform1f()
6937 if (n) { in save_ProgramUniform1f()
6938 n[1].ui = program; in save_ProgramUniform1f()
6939 n[2].i = location; in save_ProgramUniform1f()
6940 n[3].f = x; in save_ProgramUniform1f()
6951 Node *n; in save_ProgramUniform2f() local
6953 n = alloc_instruction(ctx, OPCODE_PROGRAM_UNIFORM_2F, 4); in save_ProgramUniform2f()
6954 if (n) { in save_ProgramUniform2f()
6955 n[1].ui = program; in save_ProgramUniform2f()
6956 n[2].i = location; in save_ProgramUniform2f()
6957 n[3].f = x; in save_ProgramUniform2f()
6958 n[4].f = y; in save_ProgramUniform2f()
6970 Node *n; in save_ProgramUniform3f() local
6972 n = alloc_instruction(ctx, OPCODE_PROGRAM_UNIFORM_3F, 5); in save_ProgramUniform3f()
6973 if (n) { in save_ProgramUniform3f()
6974 n[1].ui = program; in save_ProgramUniform3f()
6975 n[2].i = location; in save_ProgramUniform3f()
6976 n[3].f = x; in save_ProgramUniform3f()
6977 n[4].f = y; in save_ProgramUniform3f()
6978 n[5].f = z; in save_ProgramUniform3f()
6990 Node *n; in save_ProgramUniform4f() local
6992 n = alloc_instruction(ctx, OPCODE_PROGRAM_UNIFORM_4F, 6); in save_ProgramUniform4f()
6993 if (n) { in save_ProgramUniform4f()
6994 n[1].ui = program; in save_ProgramUniform4f()
6995 n[2].i = location; in save_ProgramUniform4f()
6996 n[3].f = x; in save_ProgramUniform4f()
6997 n[4].f = y; in save_ProgramUniform4f()
6998 n[5].f = z; in save_ProgramUniform4f()
6999 n[6].f = w; in save_ProgramUniform4f()
7011 Node *n; in save_ProgramUniform1fv() local
7013 n = alloc_instruction(ctx, OPCODE_PROGRAM_UNIFORM_1FV, 3 + POINTER_DWORDS); in save_ProgramUniform1fv()
7014 if (n) { in save_ProgramUniform1fv()
7015 n[1].ui = program; in save_ProgramUniform1fv()
7016 n[2].i = location; in save_ProgramUniform1fv()
7017 n[3].i = count; in save_ProgramUniform1fv()
7018 save_pointer(&n[4], memdup(v, count * 1 * sizeof(GLfloat))); in save_ProgramUniform1fv()
7030 Node *n; in save_ProgramUniform2fv() local
7032 n = alloc_instruction(ctx, OPCODE_PROGRAM_UNIFORM_2FV, 3 + POINTER_DWORDS); in save_ProgramUniform2fv()
7033 if (n) { in save_ProgramUniform2fv()
7034 n[1].ui = program; in save_ProgramUniform2fv()
7035 n[2].i = location; in save_ProgramUniform2fv()
7036 n[3].i = count; in save_ProgramUniform2fv()
7037 save_pointer(&n[4], memdup(v, count * 2 * sizeof(GLfloat))); in save_ProgramUniform2fv()
7049 Node *n; in save_ProgramUniform3fv() local
7051 n = alloc_instruction(ctx, OPCODE_PROGRAM_UNIFORM_3FV, 3 + POINTER_DWORDS); in save_ProgramUniform3fv()
7052 if (n) { in save_ProgramUniform3fv()
7053 n[1].ui = program; in save_ProgramUniform3fv()
7054 n[2].i = location; in save_ProgramUniform3fv()
7055 n[3].i = count; in save_ProgramUniform3fv()
7056 save_pointer(&n[4], memdup(v, count * 3 * sizeof(GLfloat))); in save_ProgramUniform3fv()
7068 Node *n; in save_ProgramUniform4fv() local
7070 n = alloc_instruction(ctx, OPCODE_PROGRAM_UNIFORM_4FV, 3 + POINTER_DWORDS); in save_ProgramUniform4fv()
7071 if (n) { in save_ProgramUniform4fv()
7072 n[1].ui = program; in save_ProgramUniform4fv()
7073 n[2].i = location; in save_ProgramUniform4fv()
7074 n[3].i = count; in save_ProgramUniform4fv()
7075 save_pointer(&n[4], memdup(v, count * 4 * sizeof(GLfloat))); in save_ProgramUniform4fv()
7086 Node *n; in save_ProgramUniform1i() local
7088 n = alloc_instruction(ctx, OPCODE_PROGRAM_UNIFORM_1I, 3); in save_ProgramUniform1i()
7089 if (n) { in save_ProgramUniform1i()
7090 n[1].ui = program; in save_ProgramUniform1i()
7091 n[2].i = location; in save_ProgramUniform1i()
7092 n[3].i = x; in save_ProgramUniform1i()
7103 Node *n; in save_ProgramUniform2i() local
7105 n = alloc_instruction(ctx, OPCODE_PROGRAM_UNIFORM_2I, 4); in save_ProgramUniform2i()
7106 if (n) { in save_ProgramUniform2i()
7107 n[1].ui = program; in save_ProgramUniform2i()
7108 n[2].i = location; in save_ProgramUniform2i()
7109 n[3].i = x; in save_ProgramUniform2i()
7110 n[4].i = y; in save_ProgramUniform2i()
7122 Node *n; in save_ProgramUniform3i() local
7124 n = alloc_instruction(ctx, OPCODE_PROGRAM_UNIFORM_3I, 5); in save_ProgramUniform3i()
7125 if (n) { in save_ProgramUniform3i()
7126 n[1].ui = program; in save_ProgramUniform3i()
7127 n[2].i = location; in save_ProgramUniform3i()
7128 n[3].i = x; in save_ProgramUniform3i()
7129 n[4].i = y; in save_ProgramUniform3i()
7130 n[5].i = z; in save_ProgramUniform3i()
7142 Node *n; in save_ProgramUniform4i() local
7144 n = alloc_instruction(ctx, OPCODE_PROGRAM_UNIFORM_4I, 6); in save_ProgramUniform4i()
7145 if (n) { in save_ProgramUniform4i()
7146 n[1].ui = program; in save_ProgramUniform4i()
7147 n[2].i = location; in save_ProgramUniform4i()
7148 n[3].i = x; in save_ProgramUniform4i()
7149 n[4].i = y; in save_ProgramUniform4i()
7150 n[5].i = z; in save_ProgramUniform4i()
7151 n[6].i = w; in save_ProgramUniform4i()
7163 Node *n; in save_ProgramUniform1iv() local
7165 n = alloc_instruction(ctx, OPCODE_PROGRAM_UNIFORM_1IV, 3 + POINTER_DWORDS); in save_ProgramUniform1iv()
7166 if (n) { in save_ProgramUniform1iv()
7167 n[1].ui = program; in save_ProgramUniform1iv()
7168 n[2].i = location; in save_ProgramUniform1iv()
7169 n[3].i = count; in save_ProgramUniform1iv()
7170 save_pointer(&n[4], memdup(v, count * 1 * sizeof(GLint))); in save_ProgramUniform1iv()
7182 Node *n; in save_ProgramUniform2iv() local
7184 n = alloc_instruction(ctx, OPCODE_PROGRAM_UNIFORM_2IV, 3 + POINTER_DWORDS); in save_ProgramUniform2iv()
7185 if (n) { in save_ProgramUniform2iv()
7186 n[1].ui = program; in save_ProgramUniform2iv()
7187 n[2].i = location; in save_ProgramUniform2iv()
7188 n[3].i = count; in save_ProgramUniform2iv()
7189 save_pointer(&n[4], memdup(v, count * 2 * sizeof(GLint))); in save_ProgramUniform2iv()
7201 Node *n; in save_ProgramUniform3iv() local
7203 n = alloc_instruction(ctx, OPCODE_PROGRAM_UNIFORM_3IV, 3 + POINTER_DWORDS); in save_ProgramUniform3iv()
7204 if (n) { in save_ProgramUniform3iv()
7205 n[1].ui = program; in save_ProgramUniform3iv()
7206 n[2].i = location; in save_ProgramUniform3iv()
7207 n[3].i = count; in save_ProgramUniform3iv()
7208 save_pointer(&n[4], memdup(v, count * 3 * sizeof(GLint))); in save_ProgramUniform3iv()
7220 Node *n; in save_ProgramUniform4iv() local
7222 n = alloc_instruction(ctx, OPCODE_PROGRAM_UNIFORM_4IV, 3 + POINTER_DWORDS); in save_ProgramUniform4iv()
7223 if (n) { in save_ProgramUniform4iv()
7224 n[1].ui = program; in save_ProgramUniform4iv()
7225 n[2].i = location; in save_ProgramUniform4iv()
7226 n[3].i = count; in save_ProgramUniform4iv()
7227 save_pointer(&n[4], memdup(v, count * 4 * sizeof(GLint))); in save_ProgramUniform4iv()
7238 Node *n; in save_ProgramUniform1ui() local
7240 n = alloc_instruction(ctx, OPCODE_PROGRAM_UNIFORM_1UI, 3); in save_ProgramUniform1ui()
7241 if (n) { in save_ProgramUniform1ui()
7242 n[1].ui = program; in save_ProgramUniform1ui()
7243 n[2].i = location; in save_ProgramUniform1ui()
7244 n[3].ui = x; in save_ProgramUniform1ui()
7255 Node *n; in save_ProgramUniform2ui() local
7257 n = alloc_instruction(ctx, OPCODE_PROGRAM_UNIFORM_2UI, 4); in save_ProgramUniform2ui()
7258 if (n) { in save_ProgramUniform2ui()
7259 n[1].ui = program; in save_ProgramUniform2ui()
7260 n[2].i = location; in save_ProgramUniform2ui()
7261 n[3].ui = x; in save_ProgramUniform2ui()
7262 n[4].ui = y; in save_ProgramUniform2ui()
7274 Node *n; in save_ProgramUniform3ui() local
7276 n = alloc_instruction(ctx, OPCODE_PROGRAM_UNIFORM_3UI, 5); in save_ProgramUniform3ui()
7277 if (n) { in save_ProgramUniform3ui()
7278 n[1].ui = program; in save_ProgramUniform3ui()
7279 n[2].i = location; in save_ProgramUniform3ui()
7280 n[3].ui = x; in save_ProgramUniform3ui()
7281 n[4].ui = y; in save_ProgramUniform3ui()
7282 n[5].ui = z; in save_ProgramUniform3ui()
7294 Node *n; in save_ProgramUniform4ui() local
7296 n = alloc_instruction(ctx, OPCODE_PROGRAM_UNIFORM_4UI, 6); in save_ProgramUniform4ui()
7297 if (n) { in save_ProgramUniform4ui()
7298 n[1].ui = program; in save_ProgramUniform4ui()
7299 n[2].i = location; in save_ProgramUniform4ui()
7300 n[3].ui = x; in save_ProgramUniform4ui()
7301 n[4].ui = y; in save_ProgramUniform4ui()
7302 n[5].ui = z; in save_ProgramUniform4ui()
7303 n[6].ui = w; in save_ProgramUniform4ui()
7315 Node *n; in save_ProgramUniform1uiv() local
7317 n = alloc_instruction(ctx, OPCODE_PROGRAM_UNIFORM_1UIV, 3 + POINTER_DWORDS); in save_ProgramUniform1uiv()
7318 if (n) { in save_ProgramUniform1uiv()
7319 n[1].ui = program; in save_ProgramUniform1uiv()
7320 n[2].i = location; in save_ProgramUniform1uiv()
7321 n[3].i = count; in save_ProgramUniform1uiv()
7322 save_pointer(&n[4], memdup(v, count * 1 * sizeof(GLuint))); in save_ProgramUniform1uiv()
7334 Node *n; in save_ProgramUniform2uiv() local
7336 n = alloc_instruction(ctx, OPCODE_PROGRAM_UNIFORM_2UIV, 3 + POINTER_DWORDS); in save_ProgramUniform2uiv()
7337 if (n) { in save_ProgramUniform2uiv()
7338 n[1].ui = program; in save_ProgramUniform2uiv()
7339 n[2].i = location; in save_ProgramUniform2uiv()
7340 n[3].i = count; in save_ProgramUniform2uiv()
7341 save_pointer(&n[4], memdup(v, count * 2 * sizeof(GLuint))); in save_ProgramUniform2uiv()
7353 Node *n; in save_ProgramUniform3uiv() local
7355 n = alloc_instruction(ctx, OPCODE_PROGRAM_UNIFORM_3UIV, 3 + POINTER_DWORDS); in save_ProgramUniform3uiv()
7356 if (n) { in save_ProgramUniform3uiv()
7357 n[1].ui = program; in save_ProgramUniform3uiv()
7358 n[2].i = location; in save_ProgramUniform3uiv()
7359 n[3].i = count; in save_ProgramUniform3uiv()
7360 save_pointer(&n[4], memdup(v, count * 3 * sizeof(GLuint))); in save_ProgramUniform3uiv()
7372 Node *n; in save_ProgramUniform4uiv() local
7374 n = alloc_instruction(ctx, OPCODE_PROGRAM_UNIFORM_4UIV, 3 + POINTER_DWORDS); in save_ProgramUniform4uiv()
7375 if (n) { in save_ProgramUniform4uiv()
7376 n[1].ui = program; in save_ProgramUniform4uiv()
7377 n[2].i = location; in save_ProgramUniform4uiv()
7378 n[3].i = count; in save_ProgramUniform4uiv()
7379 save_pointer(&n[4], memdup(v, count * 4 * sizeof(GLuint))); in save_ProgramUniform4uiv()
7391 Node *n; in save_ProgramUniformMatrix2fv() local
7393 n = alloc_instruction(ctx, OPCODE_PROGRAM_UNIFORM_MATRIX22F, in save_ProgramUniformMatrix2fv()
7395 if (n) { in save_ProgramUniformMatrix2fv()
7396 n[1].ui = program; in save_ProgramUniformMatrix2fv()
7397 n[2].i = location; in save_ProgramUniformMatrix2fv()
7398 n[3].i = count; in save_ProgramUniformMatrix2fv()
7399 n[4].b = transpose; in save_ProgramUniformMatrix2fv()
7400 save_pointer(&n[5], memdup(v, count * 2 * 2 * sizeof(GLfloat))); in save_ProgramUniformMatrix2fv()
7413 Node *n; in save_ProgramUniformMatrix2x3fv() local
7415 n = alloc_instruction(ctx, OPCODE_PROGRAM_UNIFORM_MATRIX23F, in save_ProgramUniformMatrix2x3fv()
7417 if (n) { in save_ProgramUniformMatrix2x3fv()
7418 n[1].ui = program; in save_ProgramUniformMatrix2x3fv()
7419 n[2].i = location; in save_ProgramUniformMatrix2x3fv()
7420 n[3].i = count; in save_ProgramUniformMatrix2x3fv()
7421 n[4].b = transpose; in save_ProgramUniformMatrix2x3fv()
7422 save_pointer(&n[5], memdup(v, count * 2 * 3 * sizeof(GLfloat))); in save_ProgramUniformMatrix2x3fv()
7435 Node *n; in save_ProgramUniformMatrix2x4fv() local
7437 n = alloc_instruction(ctx, OPCODE_PROGRAM_UNIFORM_MATRIX24F, in save_ProgramUniformMatrix2x4fv()
7439 if (n) { in save_ProgramUniformMatrix2x4fv()
7440 n[1].ui = program; in save_ProgramUniformMatrix2x4fv()
7441 n[2].i = location; in save_ProgramUniformMatrix2x4fv()
7442 n[3].i = count; in save_ProgramUniformMatrix2x4fv()
7443 n[4].b = transpose; in save_ProgramUniformMatrix2x4fv()
7444 save_pointer(&n[5], memdup(v, count * 2 * 4 * sizeof(GLfloat))); in save_ProgramUniformMatrix2x4fv()
7457 Node *n; in save_ProgramUniformMatrix3x2fv() local
7459 n = alloc_instruction(ctx, OPCODE_PROGRAM_UNIFORM_MATRIX32F, in save_ProgramUniformMatrix3x2fv()
7461 if (n) { in save_ProgramUniformMatrix3x2fv()
7462 n[1].ui = program; in save_ProgramUniformMatrix3x2fv()
7463 n[2].i = location; in save_ProgramUniformMatrix3x2fv()
7464 n[3].i = count; in save_ProgramUniformMatrix3x2fv()
7465 n[4].b = transpose; in save_ProgramUniformMatrix3x2fv()
7466 save_pointer(&n[5], memdup(v, count * 3 * 2 * sizeof(GLfloat))); in save_ProgramUniformMatrix3x2fv()
7479 Node *n; in save_ProgramUniformMatrix3fv() local
7481 n = alloc_instruction(ctx, OPCODE_PROGRAM_UNIFORM_MATRIX33F, in save_ProgramUniformMatrix3fv()
7483 if (n) { in save_ProgramUniformMatrix3fv()
7484 n[1].ui = program; in save_ProgramUniformMatrix3fv()
7485 n[2].i = location; in save_ProgramUniformMatrix3fv()
7486 n[3].i = count; in save_ProgramUniformMatrix3fv()
7487 n[4].b = transpose; in save_ProgramUniformMatrix3fv()
7488 save_pointer(&n[5], memdup(v, count * 3 * 3 * sizeof(GLfloat))); in save_ProgramUniformMatrix3fv()
7501 Node *n; in save_ProgramUniformMatrix3x4fv() local
7503 n = alloc_instruction(ctx, OPCODE_PROGRAM_UNIFORM_MATRIX34F, in save_ProgramUniformMatrix3x4fv()
7505 if (n) { in save_ProgramUniformMatrix3x4fv()
7506 n[1].ui = program; in save_ProgramUniformMatrix3x4fv()
7507 n[2].i = location; in save_ProgramUniformMatrix3x4fv()
7508 n[3].i = count; in save_ProgramUniformMatrix3x4fv()
7509 n[4].b = transpose; in save_ProgramUniformMatrix3x4fv()
7510 save_pointer(&n[5], memdup(v, count * 3 * 4 * sizeof(GLfloat))); in save_ProgramUniformMatrix3x4fv()
7523 Node *n; in save_ProgramUniformMatrix4x2fv() local
7525 n = alloc_instruction(ctx, OPCODE_PROGRAM_UNIFORM_MATRIX42F, in save_ProgramUniformMatrix4x2fv()
7527 if (n) { in save_ProgramUniformMatrix4x2fv()
7528 n[1].ui = program; in save_ProgramUniformMatrix4x2fv()
7529 n[2].i = location; in save_ProgramUniformMatrix4x2fv()
7530 n[3].i = count; in save_ProgramUniformMatrix4x2fv()
7531 n[4].b = transpose; in save_ProgramUniformMatrix4x2fv()
7532 save_pointer(&n[5], memdup(v, count * 4 * 2 * sizeof(GLfloat))); in save_ProgramUniformMatrix4x2fv()
7545 Node *n; in save_ProgramUniformMatrix4x3fv() local
7547 n = alloc_instruction(ctx, OPCODE_PROGRAM_UNIFORM_MATRIX43F, in save_ProgramUniformMatrix4x3fv()
7549 if (n) { in save_ProgramUniformMatrix4x3fv()
7550 n[1].ui = program; in save_ProgramUniformMatrix4x3fv()
7551 n[2].i = location; in save_ProgramUniformMatrix4x3fv()
7552 n[3].i = count; in save_ProgramUniformMatrix4x3fv()
7553 n[4].b = transpose; in save_ProgramUniformMatrix4x3fv()
7554 save_pointer(&n[5], memdup(v, count * 4 * 3 * sizeof(GLfloat))); in save_ProgramUniformMatrix4x3fv()
7567 Node *n; in save_ProgramUniformMatrix4fv() local
7569 n = alloc_instruction(ctx, OPCODE_PROGRAM_UNIFORM_MATRIX44F, in save_ProgramUniformMatrix4fv()
7571 if (n) { in save_ProgramUniformMatrix4fv()
7572 n[1].ui = program; in save_ProgramUniformMatrix4fv()
7573 n[2].i = location; in save_ProgramUniformMatrix4fv()
7574 n[3].i = count; in save_ProgramUniformMatrix4fv()
7575 n[4].b = transpose; in save_ProgramUniformMatrix4fv()
7576 save_pointer(&n[5], memdup(v, count * 4 * 4 * sizeof(GLfloat))); in save_ProgramUniformMatrix4fv()
7588 Node *n; in save_ClipControl() local
7590 n = alloc_instruction(ctx, OPCODE_CLIP_CONTROL, 2); in save_ClipControl()
7591 if (n) { in save_ClipControl()
7592 n[1].e = origin; in save_ClipControl()
7593 n[2].e = depth; in save_ClipControl()
7604 Node *n; in save_ClampColorARB() local
7606 n = alloc_instruction(ctx, OPCODE_CLAMP_COLOR, 2); in save_ClampColorARB()
7607 if (n) { in save_ClampColorARB()
7608 n[1].e = target; in save_ClampColorARB()
7609 n[2].e = clamp; in save_ClampColorARB()
7621 Node *n; in save_ClearColorIi() local
7623 n = alloc_instruction(ctx, OPCODE_CLEARCOLOR_I, 4); in save_ClearColorIi()
7624 if (n) { in save_ClearColorIi()
7625 n[1].i = red; in save_ClearColorIi()
7626 n[2].i = green; in save_ClearColorIi()
7627 n[3].i = blue; in save_ClearColorIi()
7628 n[4].i = alpha; in save_ClearColorIi()
7640 Node *n; in save_ClearColorIui() local
7642 n = alloc_instruction(ctx, OPCODE_CLEARCOLOR_UI, 4); in save_ClearColorIui()
7643 if (n) { in save_ClearColorIui()
7644 n[1].ui = red; in save_ClearColorIui()
7645 n[2].ui = green; in save_ClearColorIui()
7646 n[3].ui = blue; in save_ClearColorIui()
7647 n[4].ui = alpha; in save_ClearColorIui()
7659 Node *n; in save_TexParameterIiv() local
7661 n = alloc_instruction(ctx, OPCODE_TEXPARAMETER_I, 6); in save_TexParameterIiv()
7662 if (n) { in save_TexParameterIiv()
7663 n[1].e = target; in save_TexParameterIiv()
7664 n[2].e = pname; in save_TexParameterIiv()
7665 n[3].i = params[0]; in save_TexParameterIiv()
7666 n[4].i = params[1]; in save_TexParameterIiv()
7667 n[5].i = params[2]; in save_TexParameterIiv()
7668 n[6].i = params[3]; in save_TexParameterIiv()
7680 Node *n; in save_TexParameterIuiv() local
7682 n = alloc_instruction(ctx, OPCODE_TEXPARAMETER_UI, 6); in save_TexParameterIuiv()
7683 if (n) { in save_TexParameterIuiv()
7684 n[1].e = target; in save_TexParameterIuiv()
7685 n[2].e = pname; in save_TexParameterIuiv()
7686 n[3].ui = params[0]; in save_TexParameterIuiv()
7687 n[4].ui = params[1]; in save_TexParameterIuiv()
7688 n[5].ui = params[2]; in save_TexParameterIuiv()
7689 n[6].ui = params[3]; in save_TexParameterIuiv()
7701 Node *n; in save_VertexAttribDivisor() local
7703 n = alloc_instruction(ctx, OPCODE_VERTEX_ATTRIB_DIVISOR, 2); in save_VertexAttribDivisor()
7704 if (n) { in save_VertexAttribDivisor()
7705 n[1].ui = index; in save_VertexAttribDivisor()
7706 n[2].ui = divisor; in save_VertexAttribDivisor()
7731 Node *n; in save_BindSampler() local
7734 n = alloc_instruction(ctx, OPCODE_BIND_SAMPLER, 2); in save_BindSampler()
7735 if (n) { in save_BindSampler()
7736 n[1].ui = unit; in save_BindSampler()
7737 n[2].ui = sampler; in save_BindSampler()
7747 Node *n; in save_SamplerParameteriv() local
7750 n = alloc_instruction(ctx, OPCODE_SAMPLER_PARAMETERIV, 6); in save_SamplerParameteriv()
7751 if (n) { in save_SamplerParameteriv()
7752 n[1].ui = sampler; in save_SamplerParameteriv()
7753 n[2].e = pname; in save_SamplerParameteriv()
7754 n[3].i = params[0]; in save_SamplerParameteriv()
7756 n[4].i = params[1]; in save_SamplerParameteriv()
7757 n[5].i = params[2]; in save_SamplerParameteriv()
7758 n[6].i = params[3]; in save_SamplerParameteriv()
7761 n[4].i = n[5].i = n[6].i = 0; in save_SamplerParameteriv()
7781 Node *n; in save_SamplerParameterfv() local
7784 n = alloc_instruction(ctx, OPCODE_SAMPLER_PARAMETERFV, 6); in save_SamplerParameterfv()
7785 if (n) { in save_SamplerParameterfv()
7786 n[1].ui = sampler; in save_SamplerParameterfv()
7787 n[2].e = pname; in save_SamplerParameterfv()
7788 n[3].f = params[0]; in save_SamplerParameterfv()
7790 n[4].f = params[1]; in save_SamplerParameterfv()
7791 n[5].f = params[2]; in save_SamplerParameterfv()
7792 n[6].f = params[3]; in save_SamplerParameterfv()
7795 n[4].f = n[5].f = n[6].f = 0.0F; in save_SamplerParameterfv()
7815 Node *n; in save_SamplerParameterIiv() local
7818 n = alloc_instruction(ctx, OPCODE_SAMPLER_PARAMETERIIV, 6); in save_SamplerParameterIiv()
7819 if (n) { in save_SamplerParameterIiv()
7820 n[1].ui = sampler; in save_SamplerParameterIiv()
7821 n[2].e = pname; in save_SamplerParameterIiv()
7822 n[3].i = params[0]; in save_SamplerParameterIiv()
7824 n[4].i = params[1]; in save_SamplerParameterIiv()
7825 n[5].i = params[2]; in save_SamplerParameterIiv()
7826 n[6].i = params[3]; in save_SamplerParameterIiv()
7829 n[4].i = n[5].i = n[6].i = 0; in save_SamplerParameterIiv()
7840 Node *n; in save_SamplerParameterIuiv() local
7843 n = alloc_instruction(ctx, OPCODE_SAMPLER_PARAMETERUIV, 6); in save_SamplerParameterIuiv()
7844 if (n) { in save_SamplerParameterIuiv()
7845 n[1].ui = sampler; in save_SamplerParameterIuiv()
7846 n[2].e = pname; in save_SamplerParameterIuiv()
7847 n[3].ui = params[0]; in save_SamplerParameterIuiv()
7849 n[4].ui = params[1]; in save_SamplerParameterIuiv()
7850 n[5].ui = params[2]; in save_SamplerParameterIuiv()
7851 n[6].ui = params[3]; in save_SamplerParameterIuiv()
7854 n[4].ui = n[5].ui = n[6].ui = 0; in save_SamplerParameterIuiv()
7865 Node *n; in save_WaitSync() local
7868 n = alloc_instruction(ctx, OPCODE_WAIT_SYNC, 4); in save_WaitSync()
7869 if (n) { in save_WaitSync()
7872 n[1].bf = flags; in save_WaitSync()
7873 n[2].ui = p.uint32[0]; in save_WaitSync()
7874 n[3].ui = p.uint32[1]; in save_WaitSync()
7875 save_pointer(&n[4], sync); in save_WaitSync()
7888 Node *n; in save_BeginConditionalRender() local
7890 n = alloc_instruction(ctx, OPCODE_BEGIN_CONDITIONAL_RENDER, 2); in save_BeginConditionalRender()
7891 if (n) { in save_BeginConditionalRender()
7892 n[1].i = queryId; in save_BeginConditionalRender()
7893 n[2].e = mode; in save_BeginConditionalRender()
7915 Node *n; in save_UniformBlockBinding() local
7917 n = alloc_instruction(ctx, OPCODE_UNIFORM_BLOCK_BINDING, 3); in save_UniformBlockBinding()
7918 if (n) { in save_UniformBlockBinding()
7919 n[1].ui = prog; in save_UniformBlockBinding()
7920 n[2].ui = index; in save_UniformBlockBinding()
7921 n[3].ui = binding; in save_UniformBlockBinding()
7933 Node *n; in save_WindowRectanglesEXT() local
7935 n = alloc_instruction(ctx, OPCODE_WINDOW_RECTANGLES, 2 + POINTER_DWORDS); in save_WindowRectanglesEXT()
7936 if (n) { in save_WindowRectanglesEXT()
7941 n[1].e = mode; in save_WindowRectanglesEXT()
7942 n[2].si = count; in save_WindowRectanglesEXT()
7943 save_pointer(&n[3], box_copy); in save_WindowRectanglesEXT()
7959 Node *n; in save_error() local
7960 n = alloc_instruction(ctx, OPCODE_ERROR, 1 + POINTER_DWORDS); in save_error()
7961 if (n) { in save_error()
7962 n[1].e = error; in save_error()
7963 save_pointer(&n[2], (void *) s); in save_error()
8016 Node *n; in execute_list() local
8035 n = dlist->Head; in execute_list()
8039 const OpCode opcode = n[0].opcode; in execute_list()
8042 n += ext_opcode_execute(ctx, n); in execute_list()
8047 _mesa_error(ctx, n[1].e, "%s", (const char *) get_pointer(&n[2])); in execute_list()
8050 CALL_Accum(ctx->Exec, (n[1].e, n[2].f)); in execute_list()
8053 CALL_AlphaFunc(ctx->Exec, (n[1].e, n[2].f)); in execute_list()
8056 CALL_BindTexture(ctx->Exec, (n[1].e, n[2].ui)); in execute_list()
8062 CALL_Bitmap(ctx->Exec, ((GLsizei) n[1].i, (GLsizei) n[2].i, in execute_list()
8063 n[3].f, n[4].f, n[5].f, n[6].f, in execute_list()
8064 get_pointer(&n[7]))); in execute_list()
8069 CALL_BlendColor(ctx->Exec, (n[1].f, n[2].f, n[3].f, n[4].f)); in execute_list()
8072 CALL_BlendEquation(ctx->Exec, (n[1].e)); in execute_list()
8075 CALL_BlendEquationSeparate(ctx->Exec, (n[1].e, n[2].e)); in execute_list()
8079 (n[1].e, n[2].e, n[3].e, n[4].e)); in execute_list()
8084 CALL_BlendFunciARB(ctx->Exec, (n[1].ui, n[2].e, n[3].e)); in execute_list()
8088 CALL_BlendFuncSeparateiARB(ctx->Exec, (n[1].ui, n[2].e, n[3].e, in execute_list()
8089 n[4].e, n[5].e)); in execute_list()
8093 CALL_BlendEquationiARB(ctx->Exec, (n[1].ui, n[2].e)); in execute_list()
8098 (n[1].ui, n[2].e, n[3].e)); in execute_list()
8104 execute_list(ctx, n[1].ui); in execute_list()
8109 CALL_CallLists(ctx->Exec, (n[1].i, n[2].e, get_pointer(&n[3]))); in execute_list()
8113 CALL_Clear(ctx->Exec, (n[1].bf)); in execute_list()
8118 value[0] = n[3].i; in execute_list()
8119 value[1] = n[4].i; in execute_list()
8120 value[2] = n[5].i; in execute_list()
8121 value[3] = n[6].i; in execute_list()
8122 CALL_ClearBufferiv(ctx->Exec, (n[1].e, n[2].i, value)); in execute_list()
8128 value[0] = n[3].ui; in execute_list()
8129 value[1] = n[4].ui; in execute_list()
8130 value[2] = n[5].ui; in execute_list()
8131 value[3] = n[6].ui; in execute_list()
8132 CALL_ClearBufferuiv(ctx->Exec, (n[1].e, n[2].i, value)); in execute_list()
8138 value[0] = n[3].f; in execute_list()
8139 value[1] = n[4].f; in execute_list()
8140 value[2] = n[5].f; in execute_list()
8141 value[3] = n[6].f; in execute_list()
8142 CALL_ClearBufferfv(ctx->Exec, (n[1].e, n[2].i, value)); in execute_list()
8146 CALL_ClearBufferfi(ctx->Exec, (n[1].e, n[2].i, n[3].f, n[4].i)); in execute_list()
8149 CALL_ClearColor(ctx->Exec, (n[1].f, n[2].f, n[3].f, n[4].f)); in execute_list()
8152 CALL_ClearAccum(ctx->Exec, (n[1].f, n[2].f, n[3].f, n[4].f)); in execute_list()
8155 CALL_ClearDepth(ctx->Exec, ((GLclampd) n[1].f)); in execute_list()
8158 CALL_ClearIndex(ctx->Exec, ((GLfloat) n[1].ui)); in execute_list()
8161 CALL_ClearStencil(ctx->Exec, (n[1].i)); in execute_list()
8166 eq[0] = n[2].f; in execute_list()
8167 eq[1] = n[3].f; in execute_list()
8168 eq[2] = n[4].f; in execute_list()
8169 eq[3] = n[5].f; in execute_list()
8170 CALL_ClipPlane(ctx->Exec, (n[1].e, eq)); in execute_list()
8174 CALL_ColorMask(ctx->Exec, (n[1].b, n[2].b, n[3].b, n[4].b)); in execute_list()
8177 CALL_ColorMaski(ctx->Exec, (n[1].ui, n[2].b, n[3].b, in execute_list()
8178 n[4].b, n[5].b)); in execute_list()
8181 CALL_ColorMaterial(ctx->Exec, (n[1].e, n[2].e)); in execute_list()
8184 CALL_CopyPixels(ctx->Exec, (n[1].i, n[2].i, in execute_list()
8185 (GLsizei) n[3].i, (GLsizei) n[4].i, in execute_list()
8186 n[5].e)); in execute_list()
8189 CALL_CopyTexImage1D(ctx->Exec, (n[1].e, n[2].i, n[3].e, n[4].i, in execute_list()
8190 n[5].i, n[6].i, n[7].i)); in execute_list()
8193 CALL_CopyTexImage2D(ctx->Exec, (n[1].e, n[2].i, n[3].e, n[4].i, in execute_list()
8194 n[5].i, n[6].i, n[7].i, n[8].i)); in execute_list()
8197 CALL_CopyTexSubImage1D(ctx->Exec, (n[1].e, n[2].i, n[3].i, in execute_list()
8198 n[4].i, n[5].i, n[6].i)); in execute_list()
8201 CALL_CopyTexSubImage2D(ctx->Exec, (n[1].e, n[2].i, n[3].i, in execute_list()
8202 n[4].i, n[5].i, n[6].i, n[7].i, in execute_list()
8203 n[8].i)); in execute_list()
8206 CALL_CopyTexSubImage3D(ctx->Exec, (n[1].e, n[2].i, n[3].i, in execute_list()
8207 n[4].i, n[5].i, n[6].i, n[7].i, in execute_list()
8208 n[8].i, n[9].i)); in execute_list()
8211 CALL_CullFace(ctx->Exec, (n[1].e)); in execute_list()
8214 CALL_DepthFunc(ctx->Exec, (n[1].e)); in execute_list()
8217 CALL_DepthMask(ctx->Exec, (n[1].b)); in execute_list()
8221 ((GLclampd) n[1].f, (GLclampd) n[2].f)); in execute_list()
8224 CALL_Disable(ctx->Exec, (n[1].e)); in execute_list()
8227 CALL_Disablei(ctx->Exec, (n[1].ui, n[2].e)); in execute_list()
8230 CALL_DrawBuffer(ctx->Exec, (n[1].e)); in execute_list()
8236 CALL_DrawPixels(ctx->Exec, (n[1].i, n[2].i, n[3].e, n[4].e, in execute_list()
8237 get_pointer(&n[5]))); in execute_list()
8242 CALL_Enable(ctx->Exec, (n[1].e)); in execute_list()
8245 CALL_Enablei(ctx->Exec, (n[1].ui, n[2].e)); in execute_list()
8248 CALL_EvalMesh1(ctx->Exec, (n[1].e, n[2].i, n[3].i)); in execute_list()
8252 (n[1].e, n[2].i, n[3].i, n[4].i, n[5].i)); in execute_list()
8257 p[0] = n[2].f; in execute_list()
8258 p[1] = n[3].f; in execute_list()
8259 p[2] = n[4].f; in execute_list()
8260 p[3] = n[5].f; in execute_list()
8261 CALL_Fogfv(ctx->Exec, (n[1].e, p)); in execute_list()
8265 CALL_FrontFace(ctx->Exec, (n[1].e)); in execute_list()
8269 (n[1].f, n[2].f, n[3].f, n[4].f, n[5].f, n[6].f)); in execute_list()
8272 CALL_Hint(ctx->Exec, (n[1].e, n[2].e)); in execute_list()
8275 CALL_IndexMask(ctx->Exec, (n[1].ui)); in execute_list()
8283 p[0] = n[3].f; in execute_list()
8284 p[1] = n[4].f; in execute_list()
8285 p[2] = n[5].f; in execute_list()
8286 p[3] = n[6].f; in execute_list()
8287 CALL_Lightfv(ctx->Exec, (n[1].e, n[2].e, p)); in execute_list()
8293 p[0] = n[2].f; in execute_list()
8294 p[1] = n[3].f; in execute_list()
8295 p[2] = n[4].f; in execute_list()
8296 p[3] = n[5].f; in execute_list()
8297 CALL_LightModelfv(ctx->Exec, (n[1].e, p)); in execute_list()
8301 CALL_LineStipple(ctx->Exec, (n[1].i, n[2].us)); in execute_list()
8304 CALL_LineWidth(ctx->Exec, (n[1].f)); in execute_list()
8307 CALL_ListBase(ctx->Exec, (n[1].ui)); in execute_list()
8314 CALL_LoadMatrixf(ctx->Exec, (&n[1].f)); in execute_list()
8317 CALL_LoadName(ctx->Exec, (n[1].ui)); in execute_list()
8320 CALL_LogicOp(ctx->Exec, (n[1].e)); in execute_list()
8324 GLenum target = n[1].e; in execute_list()
8326 GLint uorder = n[5].i; in execute_list()
8327 GLfloat u1 = n[2].f; in execute_list()
8328 GLfloat u2 = n[3].f; in execute_list()
8330 (GLfloat *) get_pointer(&n[6]))); in execute_list()
8335 GLenum target = n[1].e; in execute_list()
8336 GLfloat u1 = n[2].f; in execute_list()
8337 GLfloat u2 = n[3].f; in execute_list()
8338 GLfloat v1 = n[4].f; in execute_list()
8339 GLfloat v2 = n[5].f; in execute_list()
8340 GLint ustride = n[6].i; in execute_list()
8341 GLint vstride = n[7].i; in execute_list()
8342 GLint uorder = n[8].i; in execute_list()
8343 GLint vorder = n[9].i; in execute_list()
8346 (GLfloat *) get_pointer(&n[10]))); in execute_list()
8350 CALL_MapGrid1f(ctx->Exec, (n[1].i, n[2].f, n[3].f)); in execute_list()
8354 (n[1].i, n[2].f, n[3].f, n[4].i, n[5].f, n[6].f)); in execute_list()
8357 CALL_MatrixMode(ctx->Exec, (n[1].e)); in execute_list()
8360 CALL_MultMatrixf(ctx->Exec, (&n[1].f)); in execute_list()
8364 (n[1].f, n[2].f, n[3].f, n[4].f, n[5].f, n[6].f)); in execute_list()
8367 CALL_PassThrough(ctx->Exec, (n[1].f)); in execute_list()
8371 (n[1].e, n[2].i, get_pointer(&n[3]))); in execute_list()
8374 CALL_PixelTransferf(ctx->Exec, (n[1].e, n[2].f)); in execute_list()
8377 CALL_PixelZoom(ctx->Exec, (n[1].f, n[2].f)); in execute_list()
8380 CALL_PointSize(ctx->Exec, (n[1].f)); in execute_list()
8385 params[0] = n[2].f; in execute_list()
8386 params[1] = n[3].f; in execute_list()
8387 params[2] = n[4].f; in execute_list()
8388 CALL_PointParameterfv(ctx->Exec, (n[1].e, params)); in execute_list()
8392 CALL_PolygonMode(ctx->Exec, (n[1].e, n[2].e)); in execute_list()
8398 CALL_PolygonStipple(ctx->Exec, (get_pointer(&n[1]))); in execute_list()
8403 CALL_PolygonOffset(ctx->Exec, (n[1].f, n[2].f)); in execute_list()
8406 CALL_PolygonOffsetClampEXT(ctx->Exec, (n[1].f, n[2].f, n[3].f)); in execute_list()
8418 CALL_PrioritizeTextures(ctx->Exec, (1, &n[1].ui, &n[2].f)); in execute_list()
8421 CALL_PushAttrib(ctx->Exec, (n[1].bf)); in execute_list()
8427 CALL_PushName(ctx->Exec, (n[1].ui)); in execute_list()
8430 CALL_RasterPos4f(ctx->Exec, (n[1].f, n[2].f, n[3].f, n[4].f)); in execute_list()
8433 CALL_ReadBuffer(ctx->Exec, (n[1].e)); in execute_list()
8436 CALL_Rotatef(ctx->Exec, (n[1].f, n[2].f, n[3].f, n[4].f)); in execute_list()
8439 CALL_Scalef(ctx->Exec, (n[1].f, n[2].f, n[3].f)); in execute_list()
8442 CALL_Scissor(ctx->Exec, (n[1].i, n[2].i, n[3].i, n[4].i)); in execute_list()
8445 CALL_ShadeModel(ctx->Exec, (n[1].e)); in execute_list()
8448 CALL_ProvokingVertex(ctx->Exec, (n[1].e)); in execute_list()
8451 CALL_StencilFunc(ctx->Exec, (n[1].e, n[2].i, n[3].ui)); in execute_list()
8454 CALL_StencilMask(ctx->Exec, (n[1].ui)); in execute_list()
8457 CALL_StencilOp(ctx->Exec, (n[1].e, n[2].e, n[3].e)); in execute_list()
8461 (n[1].e, n[2].e, n[3].i, n[4].ui)); in execute_list()
8464 CALL_StencilMaskSeparate(ctx->Exec, (n[1].e, n[2].ui)); in execute_list()
8468 (n[1].e, n[2].e, n[3].e, n[4].e)); in execute_list()
8473 params[0] = n[3].f; in execute_list()
8474 params[1] = n[4].f; in execute_list()
8475 params[2] = n[5].f; in execute_list()
8476 params[3] = n[6].f; in execute_list()
8477 CALL_TexEnvfv(ctx->Exec, (n[1].e, n[2].e, params)); in execute_list()
8483 params[0] = n[3].f; in execute_list()
8484 params[1] = n[4].f; in execute_list()
8485 params[2] = n[5].f; in execute_list()
8486 params[3] = n[6].f; in execute_list()
8487 CALL_TexGenfv(ctx->Exec, (n[1].e, n[2].e, params)); in execute_list()
8493 params[0] = n[3].f; in execute_list()
8494 params[1] = n[4].f; in execute_list()
8495 params[2] = n[5].f; in execute_list()
8496 params[3] = n[6].f; in execute_list()
8497 CALL_TexParameterfv(ctx->Exec, (n[1].e, n[2].e, params)); in execute_list()
8504 CALL_TexImage1D(ctx->Exec, (n[1].e, /* target */ in execute_list()
8505 n[2].i, /* level */ in execute_list()
8506 n[3].i, /* components */ in execute_list()
8507 n[4].i, /* width */ in execute_list()
8508 n[5].e, /* border */ in execute_list()
8509 n[6].e, /* format */ in execute_list()
8510 n[7].e, /* type */ in execute_list()
8511 get_pointer(&n[8]))); in execute_list()
8519 CALL_TexImage2D(ctx->Exec, (n[1].e, /* target */ in execute_list()
8520 n[2].i, /* level */ in execute_list()
8521 n[3].i, /* components */ in execute_list()
8522 n[4].i, /* width */ in execute_list()
8523 n[5].i, /* height */ in execute_list()
8524 n[6].e, /* border */ in execute_list()
8525 n[7].e, /* format */ in execute_list()
8526 n[8].e, /* type */ in execute_list()
8527 get_pointer(&n[9]))); in execute_list()
8535 CALL_TexImage3D(ctx->Exec, (n[1].e, /* target */ in execute_list()
8536 n[2].i, /* level */ in execute_list()
8537 n[3].i, /* components */ in execute_list()
8538 n[4].i, /* width */ in execute_list()
8539 n[5].i, /* height */ in execute_list()
8540 n[6].i, /* depth */ in execute_list()
8541 n[7].e, /* border */ in execute_list()
8542 n[8].e, /* format */ in execute_list()
8543 n[9].e, /* type */ in execute_list()
8544 get_pointer(&n[10]))); in execute_list()
8552 CALL_TexSubImage1D(ctx->Exec, (n[1].e, n[2].i, n[3].i, in execute_list()
8553 n[4].i, n[5].e, in execute_list()
8554 n[6].e, get_pointer(&n[7]))); in execute_list()
8562 CALL_TexSubImage2D(ctx->Exec, (n[1].e, n[2].i, n[3].i, in execute_list()
8563 n[4].i, n[5].e, in execute_list()
8564 n[6].i, n[7].e, n[8].e, in execute_list()
8565 get_pointer(&n[9]))); in execute_list()
8573 CALL_TexSubImage3D(ctx->Exec, (n[1].e, n[2].i, n[3].i, in execute_list()
8574 n[4].i, n[5].i, n[6].i, n[7].i, in execute_list()
8575 n[8].i, n[9].e, n[10].e, in execute_list()
8576 get_pointer(&n[11]))); in execute_list()
8581 CALL_Translatef(ctx->Exec, (n[1].f, n[2].f, n[3].f)); in execute_list()
8584 CALL_Viewport(ctx->Exec, (n[1].i, n[2].i, in execute_list()
8585 (GLsizei) n[3].i, (GLsizei) n[4].i)); in execute_list()
8588 CALL_WindowPos4fMESA(ctx->Exec, (n[1].f, n[2].f, n[3].f, n[4].f)); in execute_list()
8591 CALL_ActiveTexture(ctx->Exec, (n[1].e)); in execute_list()
8594 CALL_CompressedTexImage1D(ctx->Exec, (n[1].e, n[2].i, n[3].e, in execute_list()
8595 n[4].i, n[5].i, n[6].i, in execute_list()
8596 get_pointer(&n[7]))); in execute_list()
8599 CALL_CompressedTexImage2D(ctx->Exec, (n[1].e, n[2].i, n[3].e, in execute_list()
8600 n[4].i, n[5].i, n[6].i, in execute_list()
8601 n[7].i, get_pointer(&n[8]))); in execute_list()
8604 CALL_CompressedTexImage3D(ctx->Exec, (n[1].e, n[2].i, n[3].e, in execute_list()
8605 n[4].i, n[5].i, n[6].i, in execute_list()
8606 n[7].i, n[8].i, in execute_list()
8607 get_pointer(&n[9]))); in execute_list()
8611 (n[1].e, n[2].i, n[3].i, n[4].i, in execute_list()
8612 n[5].e, n[6].i, in execute_list()
8613 get_pointer(&n[7]))); in execute_list()
8617 (n[1].e, n[2].i, n[3].i, n[4].i, in execute_list()
8618 n[5].i, n[6].i, n[7].e, n[8].i, in execute_list()
8619 get_pointer(&n[9]))); in execute_list()
8623 (n[1].e, n[2].i, n[3].i, n[4].i, in execute_list()
8624 n[5].i, n[6].i, n[7].i, n[8].i, in execute_list()
8625 n[9].e, n[10].i, in execute_list()
8626 get_pointer(&n[11]))); in execute_list()
8629 CALL_SampleCoverage(ctx->Exec, (n[1].f, n[2].b)); in execute_list()
8632 CALL_WindowPos3f(ctx->Exec, (n[1].f, n[2].f, n[3].f)); in execute_list()
8635 CALL_BindProgramARB(ctx->Exec, (n[1].e, n[2].ui)); in execute_list()
8639 (n[1].e, n[2].ui, n[3].f, n[4].f, in execute_list()
8640 n[5].f, n[6].f)); in execute_list()
8643 CALL_ActiveStencilFaceEXT(ctx->Exec, (n[1].e)); in execute_list()
8646 CALL_DepthBoundsEXT(ctx->Exec, (n[1].f, n[2].f)); in execute_list()
8650 (n[1].e, n[2].e, n[3].i, in execute_list()
8651 get_pointer(&n[4]))); in execute_list()
8654 CALL_ProgramEnvParameter4fARB(ctx->Exec, (n[1].e, n[2].ui, n[3].f, in execute_list()
8655 n[4].f, n[5].f, in execute_list()
8656 n[6].f)); in execute_list()
8659 CALL_BeginQuery(ctx->Exec, (n[1].e, n[2].ui)); in execute_list()
8662 CALL_EndQuery(ctx->Exec, (n[1].e)); in execute_list()
8665 CALL_QueryCounter(ctx->Exec, (n[1].ui, n[2].e)); in execute_list()
8668 CALL_BeginQueryIndexed(ctx->Exec, (n[1].e, n[2].ui, n[3].ui)); in execute_list()
8671 CALL_EndQueryIndexed(ctx->Exec, (n[1].e, n[2].ui)); in execute_list()
8676 GLint i, count = MIN2(n[1].i, MAX_DRAW_BUFFERS); in execute_list()
8678 buffers[i] = n[2 + i].e; in execute_list()
8679 CALL_DrawBuffers(ctx->Exec, (n[1].i, buffers)); in execute_list()
8683 CALL_BlitFramebuffer(ctx->Exec, (n[1].i, n[2].i, n[3].i, n[4].i, in execute_list()
8684 n[5].i, n[6].i, n[7].i, n[8].i, in execute_list()
8685 n[9].i, n[10].e)); in execute_list()
8692 CALL_UseProgram(ctx->Exec, (n[1].ui)); in execute_list()
8695 CALL_Uniform1f(ctx->Exec, (n[1].i, n[2].f)); in execute_list()
8698 CALL_Uniform2f(ctx->Exec, (n[1].i, n[2].f, n[3].f)); in execute_list()
8701 CALL_Uniform3f(ctx->Exec, (n[1].i, n[2].f, n[3].f, n[4].f)); in execute_list()
8705 (n[1].i, n[2].f, n[3].f, n[4].f, n[5].f)); in execute_list()
8708 CALL_Uniform1fv(ctx->Exec, (n[1].i, n[2].i, get_pointer(&n[3]))); in execute_list()
8711 CALL_Uniform2fv(ctx->Exec, (n[1].i, n[2].i, get_pointer(&n[3]))); in execute_list()
8714 CALL_Uniform3fv(ctx->Exec, (n[1].i, n[2].i, get_pointer(&n[3]))); in execute_list()
8717 CALL_Uniform4fv(ctx->Exec, (n[1].i, n[2].i, get_pointer(&n[3]))); in execute_list()
8720 CALL_Uniform1i(ctx->Exec, (n[1].i, n[2].i)); in execute_list()
8723 CALL_Uniform2i(ctx->Exec, (n[1].i, n[2].i, n[3].i)); in execute_list()
8726 CALL_Uniform3i(ctx->Exec, (n[1].i, n[2].i, n[3].i, n[4].i)); in execute_list()
8730 (n[1].i, n[2].i, n[3].i, n[4].i, n[5].i)); in execute_list()
8733 CALL_Uniform1iv(ctx->Exec, (n[1].i, n[2].i, get_pointer(&n[3]))); in execute_list()
8736 CALL_Uniform2iv(ctx->Exec, (n[1].i, n[2].i, get_pointer(&n[3]))); in execute_list()
8739 CALL_Uniform3iv(ctx->Exec, (n[1].i, n[2].i, get_pointer(&n[3]))); in execute_list()
8742 CALL_Uniform4iv(ctx->Exec, (n[1].i, n[2].i, get_pointer(&n[3]))); in execute_list()
8776 (n[1].i, n[2].i, n[3].b, get_pointer(&n[4]))); in execute_list()
8780 (n[1].i, n[2].i, n[3].b, get_pointer(&n[4]))); in execute_list()
8784 (n[1].i, n[2].i, n[3].b, get_pointer(&n[4]))); in execute_list()
8788 (n[1].i, n[2].i, n[3].b, get_pointer(&n[4]))); in execute_list()
8792 (n[1].i, n[2].i, n[3].b, get_pointer(&n[4]))); in execute_list()
8796 (n[1].i, n[2].i, n[3].b, get_pointer(&n[4]))); in execute_list()
8800 (n[1].i, n[2].i, n[3].b, get_pointer(&n[4]))); in execute_list()
8804 (n[1].i, n[2].i, n[3].b, get_pointer(&n[4]))); in execute_list()
8808 (n[1].i, n[2].i, n[3].b, get_pointer(&n[4]))); in execute_list()
8812 CALL_UseProgramStages(ctx->Exec, (n[1].ui, n[2].ui, n[3].ui)); in execute_list()
8815 CALL_ProgramUniform1f(ctx->Exec, (n[1].ui, n[2].i, n[3].f)); in execute_list()
8818 CALL_ProgramUniform2f(ctx->Exec, (n[1].ui, n[2].i, n[3].f, n[4].f)); in execute_list()
8821 CALL_ProgramUniform3f(ctx->Exec, (n[1].ui, n[2].i, in execute_list()
8822 n[3].f, n[4].f, n[5].f)); in execute_list()
8825 CALL_ProgramUniform4f(ctx->Exec, (n[1].ui, n[2].i, in execute_list()
8826 n[3].f, n[4].f, n[5].f, n[6].f)); in execute_list()
8829 CALL_ProgramUniform1fv(ctx->Exec, (n[1].ui, n[2].i, n[3].i, in execute_list()
8830 get_pointer(&n[4]))); in execute_list()
8833 CALL_ProgramUniform2fv(ctx->Exec, (n[1].ui, n[2].i, n[3].i, in execute_list()
8834 get_pointer(&n[4]))); in execute_list()
8837 CALL_ProgramUniform3fv(ctx->Exec, (n[1].ui, n[2].i, n[3].i, in execute_list()
8838 get_pointer(&n[4]))); in execute_list()
8841 CALL_ProgramUniform4fv(ctx->Exec, (n[1].ui, n[2].i, n[3].i, in execute_list()
8842 get_pointer(&n[4]))); in execute_list()
8845 CALL_ProgramUniform1i(ctx->Exec, (n[1].ui, n[2].i, n[3].i)); in execute_list()
8848 CALL_ProgramUniform2i(ctx->Exec, (n[1].ui, n[2].i, n[3].i, n[4].i)); in execute_list()
8851 CALL_ProgramUniform3i(ctx->Exec, (n[1].ui, n[2].i, in execute_list()
8852 n[3].i, n[4].i, n[5].i)); in execute_list()
8855 CALL_ProgramUniform4i(ctx->Exec, (n[1].ui, n[2].i, in execute_list()
8856 n[3].i, n[4].i, n[5].i, n[6].i)); in execute_list()
8859 CALL_ProgramUniform1iv(ctx->Exec, (n[1].ui, n[2].i, n[3].i, in execute_list()
8860 get_pointer(&n[4]))); in execute_list()
8863 CALL_ProgramUniform2iv(ctx->Exec, (n[1].ui, n[2].i, n[3].i, in execute_list()
8864 get_pointer(&n[4]))); in execute_list()
8867 CALL_ProgramUniform3iv(ctx->Exec, (n[1].ui, n[2].i, n[3].i, in execute_list()
8868 get_pointer(&n[4]))); in execute_list()
8871 CALL_ProgramUniform4iv(ctx->Exec, (n[1].ui, n[2].i, n[3].i, in execute_list()
8872 get_pointer(&n[4]))); in execute_list()
8875 CALL_ProgramUniform1ui(ctx->Exec, (n[1].ui, n[2].i, n[3].ui)); in execute_list()
8878 CALL_ProgramUniform2ui(ctx->Exec, (n[1].ui, n[2].i, in execute_list()
8879 n[3].ui, n[4].ui)); in execute_list()
8882 CALL_ProgramUniform3ui(ctx->Exec, (n[1].ui, n[2].i, in execute_list()
8883 n[3].ui, n[4].ui, n[5].ui)); in execute_list()
8886 CALL_ProgramUniform4ui(ctx->Exec, (n[1].ui, n[2].i, in execute_list()
8887 n[3].ui, in execute_list()
8888 n[4].ui, n[5].ui, n[6].ui)); in execute_list()
8891 CALL_ProgramUniform1uiv(ctx->Exec, (n[1].ui, n[2].i, n[3].i, in execute_list()
8892 get_pointer(&n[4]))); in execute_list()
8895 CALL_ProgramUniform2uiv(ctx->Exec, (n[1].ui, n[2].i, n[3].i, in execute_list()
8896 get_pointer(&n[4]))); in execute_list()
8899 CALL_ProgramUniform3uiv(ctx->Exec, (n[1].ui, n[2].i, n[3].i, in execute_list()
8900 get_pointer(&n[4]))); in execute_list()
8903 CALL_ProgramUniform4uiv(ctx->Exec, (n[1].ui, n[2].i, n[3].i, in execute_list()
8904 get_pointer(&n[4]))); in execute_list()
8908 (n[1].ui, n[2].i, n[3].i, n[4].b, in execute_list()
8909 get_pointer(&n[5]))); in execute_list()
8913 (n[1].ui, n[2].i, n[3].i, n[4].b, in execute_list()
8914 get_pointer(&n[5]))); in execute_list()
8918 (n[1].ui, n[2].i, n[3].i, n[4].b, in execute_list()
8919 get_pointer(&n[5]))); in execute_list()
8923 (n[1].ui, n[2].i, n[3].i, n[4].b, in execute_list()
8924 get_pointer(&n[5]))); in execute_list()
8928 (n[1].ui, n[2].i, n[3].i, n[4].b, in execute_list()
8929 get_pointer(&n[5]))); in execute_list()
8933 (n[1].ui, n[2].i, n[3].i, n[4].b, in execute_list()
8934 get_pointer(&n[5]))); in execute_list()
8938 (n[1].ui, n[2].i, n[3].i, n[4].b, in execute_list()
8939 get_pointer(&n[5]))); in execute_list()
8943 (n[1].ui, n[2].i, n[3].i, n[4].b, in execute_list()
8944 get_pointer(&n[5]))); in execute_list()
8948 (n[1].ui, n[2].i, n[3].i, n[4].b, in execute_list()
8949 get_pointer(&n[5]))); in execute_list()
8953 CALL_ClipControl(ctx->Exec, (n[1].e, n[2].e)); in execute_list()
8957 CALL_ClampColor(ctx->Exec, (n[1].e, n[2].e)); in execute_list()
8961 CALL_BindFragmentShaderATI(ctx->Exec, (n[1].i)); in execute_list()
8964 CALL_SetFragmentShaderConstantATI(ctx->Exec, (n[1].ui, &n[2].f)); in execute_list()
8967 CALL_VertexAttrib1fNV(ctx->Exec, (n[1].e, n[2].f)); in execute_list()
8970 CALL_VertexAttrib2fvNV(ctx->Exec, (n[1].e, &n[2].f)); in execute_list()
8973 CALL_VertexAttrib3fvNV(ctx->Exec, (n[1].e, &n[2].f)); in execute_list()
8976 CALL_VertexAttrib4fvNV(ctx->Exec, (n[1].e, &n[2].f)); in execute_list()
8979 CALL_VertexAttrib1fARB(ctx->Exec, (n[1].e, n[2].f)); in execute_list()
8982 CALL_VertexAttrib2fvARB(ctx->Exec, (n[1].e, &n[2].f)); in execute_list()
8985 CALL_VertexAttrib3fvARB(ctx->Exec, (n[1].e, &n[2].f)); in execute_list()
8988 CALL_VertexAttrib4fvARB(ctx->Exec, (n[1].e, &n[2].f)); in execute_list()
8991 CALL_Materialfv(ctx->Exec, (n[1].e, n[2].e, &n[3].f)); in execute_list()
8994 CALL_Begin(ctx->Exec, (n[1].e)); in execute_list()
9000 CALL_Rectf(ctx->Exec, (n[1].f, n[2].f, n[3].f, n[4].f)); in execute_list()
9003 CALL_EvalCoord1f(ctx->Exec, (n[1].f)); in execute_list()
9006 CALL_EvalCoord2f(ctx->Exec, (n[1].f, n[2].f)); in execute_list()
9009 CALL_EvalPoint1(ctx->Exec, (n[1].i)); in execute_list()
9012 CALL_EvalPoint2(ctx->Exec, (n[1].i, n[2].i)); in execute_list()
9017 CALL_ClearColorIiEXT(ctx->Exec, (n[1].i, n[2].i, n[3].i, n[4].i)); in execute_list()
9021 (n[1].ui, n[2].ui, n[3].ui, n[4].ui)); in execute_list()
9026 params[0] = n[3].i; in execute_list()
9027 params[1] = n[4].i; in execute_list()
9028 params[2] = n[5].i; in execute_list()
9029 params[3] = n[6].i; in execute_list()
9030 CALL_TexParameterIiv(ctx->Exec, (n[1].e, n[2].e, params)); in execute_list()
9036 params[0] = n[3].ui; in execute_list()
9037 params[1] = n[4].ui; in execute_list()
9038 params[2] = n[5].ui; in execute_list()
9039 params[3] = n[6].ui; in execute_list()
9040 CALL_TexParameterIuiv(ctx->Exec, (n[1].e, n[2].e, params)); in execute_list()
9046 CALL_VertexAttribDivisor(ctx->Exec, (n[1].ui, n[2].ui)); in execute_list()
9055 CALL_BeginTransformFeedback(ctx->Exec, (n[1].e)); in execute_list()
9061 CALL_BindTransformFeedback(ctx->Exec, (n[1].e, n[2].ui)); in execute_list()
9070 CALL_DrawTransformFeedback(ctx->Exec, (n[1].e, n[2].ui)); in execute_list()
9074 (n[1].e, n[2].ui, n[3].ui)); in execute_list()
9078 (n[1].e, n[2].ui, n[3].si)); in execute_list()
9082 (n[1].e, n[2].ui, n[3].ui, n[4].si)); in execute_list()
9087 CALL_BindSampler(ctx->Exec, (n[1].ui, n[2].ui)); in execute_list()
9092 params[0] = n[3].i; in execute_list()
9093 params[1] = n[4].i; in execute_list()
9094 params[2] = n[5].i; in execute_list()
9095 params[3] = n[6].i; in execute_list()
9096 CALL_SamplerParameteriv(ctx->Exec, (n[1].ui, n[2].e, params)); in execute_list()
9102 params[0] = n[3].f; in execute_list()
9103 params[1] = n[4].f; in execute_list()
9104 params[2] = n[5].f; in execute_list()
9105 params[3] = n[6].f; in execute_list()
9106 CALL_SamplerParameterfv(ctx->Exec, (n[1].ui, n[2].e, params)); in execute_list()
9112 params[0] = n[3].i; in execute_list()
9113 params[1] = n[4].i; in execute_list()
9114 params[2] = n[5].i; in execute_list()
9115 params[3] = n[6].i; in execute_list()
9116 CALL_SamplerParameterIiv(ctx->Exec, (n[1].ui, n[2].e, params)); in execute_list()
9122 params[0] = n[3].ui; in execute_list()
9123 params[1] = n[4].ui; in execute_list()
9124 params[2] = n[5].ui; in execute_list()
9125 params[3] = n[6].ui; in execute_list()
9126 CALL_SamplerParameterIuiv(ctx->Exec, (n[1].ui, n[2].e, params)); in execute_list()
9134 p.uint32[0] = n[2].ui; in execute_list()
9135 p.uint32[1] = n[3].ui; in execute_list()
9137 (get_pointer(&n[4]), n[1].bf, p.uint64)); in execute_list()
9143 CALL_BeginConditionalRender(ctx->Exec, (n[1].i, n[2].e)); in execute_list()
9150 CALL_UniformBlockBinding(ctx->Exec, (n[1].ui, n[2].ui, n[3].ui)); in execute_list()
9156 ctx->Exec, (n[1].e, n[2].si, get_pointer(&n[3]))); in execute_list()
9160 n = (Node *) get_pointer(&n[1]); in execute_list()
9180 n += InstSize[opcode]; in execute_list()
9458 render_bitmap_atlas(struct gl_context *ctx, GLsizei n, GLenum type, in render_bitmap_atlas() argument
9497 for (i = 0; i < n; i++) { in render_bitmap_atlas()
9505 ctx->Driver.DrawAtlasBitmaps(ctx, atlas, n, (const GLubyte *) lists); in render_bitmap_atlas()
9515 _mesa_CallLists(GLsizei n, GLenum type, const GLvoid * lists) in _mesa_CallLists() argument
9522 _mesa_debug(ctx, "glCallLists %d\n", n); in _mesa_CallLists()
9542 if (n < 0) { in _mesa_CallLists()
9545 } else if (n == 0 || lists == NULL) { in _mesa_CallLists()
9550 if (render_bitmap_atlas(ctx, n, type, lists)) { in _mesa_CallLists()
9560 for (i = 0; i < n; i++) { in _mesa_CallLists()
10090 Node *n; in print_list() local
10110 n = dlist->Head; in print_list()
10112 fprintf(f, "START-LIST %u, address %p\n", list, (void *) n); in print_list()
10114 done = n ? GL_FALSE : GL_TRUE; in print_list()
10116 const OpCode opcode = n[0].opcode; in print_list()
10119 n += ext_opcode_print(ctx, n, f); in print_list()
10124 fprintf(f, "Accum %s %g\n", enum_string(n[1].e), n[2].f); in print_list()
10127 fprintf(f, "ActiveTexture(%s)\n", enum_string(n[1].e)); in print_list()
10130 fprintf(f, "Bitmap %d %d %g %g %g %g %p\n", n[1].i, n[2].i, in print_list()
10131 n[3].f, n[4].f, n[5].f, n[6].f, in print_list()
10132 get_pointer(&n[7])); in print_list()
10136 n[1].f, n[2].f, n[3].f, n[4].f); in print_list()
10140 enum_string(n[1].e)); in print_list()
10144 enum_string(n[1].e), in print_list()
10145 enum_string(n[2].e)); in print_list()
10149 enum_string(n[1].e), in print_list()
10150 enum_string(n[2].e), in print_list()
10151 enum_string(n[3].e), in print_list()
10152 enum_string(n[4].e)); in print_list()
10156 n[1].ui, enum_string(n[2].e)); in print_list()
10160 n[1].ui, enum_string(n[2].e), enum_string(n[3].e)); in print_list()
10164 n[1].ui, enum_string(n[2].e), enum_string(n[3].e)); in print_list()
10168 n[1].ui, in print_list()
10169 enum_string(n[2].e), in print_list()
10170 enum_string(n[3].e), in print_list()
10171 enum_string(n[4].e), in print_list()
10172 enum_string(n[5].e)); in print_list()
10175 fprintf(f, "CallList %d\n", (int) n[1].ui); in print_list()
10178 fprintf(f, "CallLists %d, %s\n", n[1].i, enum_string(n[1].e)); in print_list()
10181 fprintf(f, "Disable %s\n", enum_string(n[1].e)); in print_list()
10184 fprintf(f, "Enable %s\n", enum_string(n[1].e)); in print_list()
10188 n[1].f, n[2].f, n[3].f, n[4].f, n[5].f, n[6].f); in print_list()
10191 fprintf(f, "LineStipple %d %x\n", n[1].i, (int) n[2].us); in print_list()
10194 fprintf(f, "LineWidth %f\n", n[1].f); in print_list()
10202 n[1].f, n[5].f, n[9].f, n[13].f); in print_list()
10204 n[2].f, n[6].f, n[10].f, n[14].f); in print_list()
10206 n[3].f, n[7].f, n[11].f, n[15].f); in print_list()
10208 n[4].f, n[8].f, n[12].f, n[16].f); in print_list()
10213 n[1].f, n[5].f, n[9].f, n[13].f); in print_list()
10215 n[2].f, n[6].f, n[10].f, n[14].f); in print_list()
10217 n[3].f, n[7].f, n[11].f, n[15].f); in print_list()
10219 n[4].f, n[8].f, n[12].f, n[16].f); in print_list()
10223 n[1].f, n[2].f, n[3].f, n[4].f, n[5].f, n[6].f); in print_list()
10226 fprintf(f, "PointSize %f\n", n[1].f); in print_list()
10238 fprintf(f, "PushAttrib %x\n", n[1].bf); in print_list()
10244 fprintf(f, "PushName %d\n", (int) n[1].ui); in print_list()
10248 n[1].f, n[2].f, n[3].f, n[4].f); in print_list()
10252 n[1].f, n[2].f, n[3].f, n[4].f); in print_list()
10255 fprintf(f, "Scale %g %g %g\n", n[1].f, n[2].f, n[3].f); in print_list()
10258 fprintf(f, "Translate %g %g %g\n", n[1].f, n[2].f, n[3].f); in print_list()
10262 _mesa_enum_to_string(n[1].ui), n[2].ui); in print_list()
10265 fprintf(f, "ShadeModel %s\n", _mesa_enum_to_string(n[1].ui)); in print_list()
10269 _mesa_enum_to_string(n[1].ui), in print_list()
10270 n[2].f, n[3].f, n[4].i, n[5].i); in print_list()
10274 _mesa_enum_to_string(n[1].ui), in print_list()
10275 n[2].f, n[3].f, n[4].f, n[5].f, in print_list()
10276 n[6].i, n[7].i, n[8].i, n[9].i); in print_list()
10279 fprintf(f, "MapGrid1 %d %.3f %.3f\n", n[1].i, n[2].f, n[3].f); in print_list()
10283 n[1].i, n[2].f, n[3].f, n[4].i, n[5].f, n[6].f); in print_list()
10286 fprintf(f, "EvalMesh1 %d %d\n", n[1].i, n[2].i); in print_list()
10290 n[1].i, n[2].i, n[3].i, n[4].i); in print_list()
10294 fprintf(f, "ATTR_1F_NV attr %d: %f\n", n[1].i, n[2].f); in print_list()
10298 n[1].i, n[2].f, n[3].f); in print_list()
10302 n[1].i, n[2].f, n[3].f, n[4].f); in print_list()
10306 n[1].i, n[2].f, n[3].f, n[4].f, n[5].f); in print_list()
10309 fprintf(f, "ATTR_1F_ARB attr %d: %f\n", n[1].i, n[2].f); in print_list()
10313 n[1].i, n[2].f, n[3].f); in print_list()
10317 n[1].i, n[2].f, n[3].f, n[4].f); in print_list()
10321 n[1].i, n[2].f, n[3].f, n[4].f, n[5].f); in print_list()
10326 n[1].i, n[2].i, n[3].f, n[4].f, n[5].f, n[6].f); in print_list()
10329 fprintf(f, "BEGIN %x\n", n[1].i); in print_list()
10335 fprintf(f, "RECTF %f %f %f %f\n", n[1].f, n[2].f, n[3].f, in print_list()
10336 n[4].f); in print_list()
10339 fprintf(f, "EVAL_C1 %f\n", n[1].f); in print_list()
10342 fprintf(f, "EVAL_C2 %f %f\n", n[1].f, n[2].f); in print_list()
10345 fprintf(f, "EVAL_P1 %d\n", n[1].i); in print_list()
10348 fprintf(f, "EVAL_P2 %d %d\n", n[1].i, n[2].i); in print_list()
10353 _mesa_enum_to_string(n[1].ui)); in print_list()
10360 fprintf(f, "Error: %s %s\n", enum_string(n[1].e), in print_list()
10361 (const char *) get_pointer(&n[2])); in print_list()
10365 n = (Node *) get_pointer(&n[1]); in print_list()
10378 opcode, (void *) n); in print_list()
10388 n += InstSize[opcode]; in print_list()