mesa.git
18 years agoLots of fixes, clean-ups, new comments, etc.
Brian Paul [Mon, 28 Nov 2005 00:00:08 +0000 (00:00 +0000)]
Lots of fixes, clean-ups, new comments, etc.
To set the FBdev video mode, need to add a \n char to the string.

18 years agoRedo _eglInitSurface() so it can be used with all surface types.
Brian Paul [Sun, 27 Nov 2005 23:57:19 +0000 (23:57 +0000)]
Redo _eglInitSurface() so it can be used with all surface types.
Redo _eglInitContext() to do error checking, attribute list parsing, etc.

18 years agoinclude stdint.h for BSD
Brian Paul [Sun, 27 Nov 2005 23:46:55 +0000 (23:46 +0000)]
include stdint.h for BSD

18 years agouse ADD_POINTERS macro instead of (uintptr_t) cast
Brian Paul [Fri, 25 Nov 2005 17:07:10 +0000 (17:07 +0000)]
use ADD_POINTERS macro instead of (uintptr_t) cast

18 years agoUse _mesa_exec_free for fp->func.
Keith Whitwell [Thu, 24 Nov 2005 10:59:10 +0000 (10:59 +0000)]
Use _mesa_exec_free for fp->func.

18 years agouse new _egl_api struct
Brian Paul [Thu, 24 Nov 2005 04:06:51 +0000 (04:06 +0000)]
use new _egl_api struct

18 years agouse _egl_api struct, make some functions static
Brian Paul [Thu, 24 Nov 2005 04:05:27 +0000 (04:05 +0000)]
use _egl_api struct, make some functions static

18 years agoMove all the EGL API function pointers into a new _egl_api struct.
Brian Paul [Thu, 24 Nov 2005 04:02:16 +0000 (04:02 +0000)]
Move all the EGL API function pointers into a new _egl_api struct.

18 years agoreport error token in message printed in _eglError()
Brian Paul [Thu, 24 Nov 2005 03:53:46 +0000 (03:53 +0000)]
report error token in message printed in _eglError()

18 years agochange error test in _eglParseConfigAttribs()
Brian Paul [Thu, 24 Nov 2005 03:48:19 +0000 (03:48 +0000)]
change error test in _eglParseConfigAttribs()

18 years agoinit attribs to EGL_DONT_CARE in _eglParseConfigAttribs()
Brian Paul [Thu, 24 Nov 2005 03:41:56 +0000 (03:41 +0000)]
init attribs to EGL_DONT_CARE in _eglParseConfigAttribs()

18 years agoCouple changes that were missed.
Aapo Tahkola [Wed, 23 Nov 2005 13:02:25 +0000 (13:02 +0000)]
Couple changes that were missed.

18 years agocheck/print EGL_SCREEN_BIT_MESA, fix eglGetDisplay() call
Brian Paul [Wed, 23 Nov 2005 01:45:25 +0000 (01:45 +0000)]
check/print EGL_SCREEN_BIT_MESA, fix eglGetDisplay() call

18 years agoChoose the display mode / surface size in an intelligent way.
Brian Paul [Wed, 23 Nov 2005 01:44:38 +0000 (01:44 +0000)]
Choose the display mode / surface size in an intelligent way.
Fix // comments.
More error checking, etc.

18 years agoupdate some comments
Brian Paul [Wed, 23 Nov 2005 01:42:40 +0000 (01:42 +0000)]
update some comments

18 years agofixed wrong return value in radeonShowSurfaceMESA()
Brian Paul [Wed, 23 Nov 2005 01:39:56 +0000 (01:39 +0000)]
fixed wrong return value in radeonShowSurfaceMESA()

18 years agochange error message
Brian Paul [Wed, 23 Nov 2005 01:38:30 +0000 (01:38 +0000)]
change error message

18 years agouse _eglLog()
Brian Paul [Wed, 23 Nov 2005 01:38:12 +0000 (01:38 +0000)]
use _eglLog()

18 years agoNew _eglLog() function to replace fprintf/printf calls for debug/info.
Brian Paul [Wed, 23 Nov 2005 01:37:30 +0000 (01:37 +0000)]
New _eglLog() function to replace fprintf/printf calls for debug/info.

18 years agoreference bug 5131 in comment in _tnl_free_vertices()
Brian Paul [Tue, 22 Nov 2005 23:29:27 +0000 (23:29 +0000)]
reference bug 5131 in comment in _tnl_free_vertices()

18 years agodisable freeing of fp->func, see comment (bug 5131)
Brian Paul [Tue, 22 Nov 2005 23:27:27 +0000 (23:27 +0000)]
disable freeing of fp->func, see comment (bug 5131)

18 years agoUse correct enums for program output variables. Fixes
Keith Whitwell [Tue, 22 Nov 2005 12:20:03 +0000 (12:20 +0000)]
Use correct enums for program output variables.  Fixes
fp/tri-depthwrite.

18 years agotrack state flags which might invalidate parameter lists
Keith Whitwell [Tue, 22 Nov 2005 12:12:17 +0000 (12:12 +0000)]
track state flags which might invalidate parameter lists

18 years agoMake sure tnl->_DoVertexFog is kept uptodate. Fixes fog in i915
Keith Whitwell [Tue, 22 Nov 2005 10:58:05 +0000 (10:58 +0000)]
Make sure tnl->_DoVertexFog is kept uptodate.  Fixes fog in i915
driver.

18 years agobit 31 of this inserts a nop after the current instruction
Dave Airlie [Mon, 21 Nov 2005 11:39:49 +0000 (11:39 +0000)]
bit 31 of this inserts a nop after the current instruction

18 years agoget rid of some of those unknowns figured out from reg dumper
Dave Airlie [Mon, 21 Nov 2005 11:35:36 +0000 (11:35 +0000)]
get rid of some of those unknowns figured out from reg dumper

18 years agomove _mesa_init_instruction() to program.c
Brian Paul [Sun, 20 Nov 2005 17:57:22 +0000 (17:57 +0000)]
move _mesa_init_instruction() to program.c

18 years agos/Saturate/SaturateMode/
Brian Paul [Sun, 20 Nov 2005 17:54:29 +0000 (17:54 +0000)]
s/Saturate/SaturateMode/

18 years agoMake Saturate a 2-bit field again, renamed to SaturateMode with three
Brian Paul [Sun, 20 Nov 2005 17:52:40 +0000 (17:52 +0000)]
Make Saturate a 2-bit field again, renamed to SaturateMode with three
possible values: SATURATE_OFF, SATURATE_ZERO_ONE and SATURATE_PLUS_MINUS_ONE.

18 years agoadditional clean-ups and improvements
Brian Paul [Sat, 19 Nov 2005 23:45:10 +0000 (23:45 +0000)]
additional clean-ups and improvements

18 years agoremove incorrect cast
Brian Paul [Sat, 19 Nov 2005 23:29:18 +0000 (23:29 +0000)]
remove incorrect cast

18 years agoSaturate is a 1-bit boolean field
Brian Paul [Sat, 19 Nov 2005 23:28:55 +0000 (23:28 +0000)]
Saturate is a 1-bit boolean field

18 years agoBunch of little fixes:
Brian Paul [Sat, 19 Nov 2005 23:12:20 +0000 (23:12 +0000)]
Bunch of little fixes:
Fix mem leaks in _mesa_TexEnvProgramCacheDestroy().
Check if ctx->Driver.BindProgram is non-null before calling.
s/unsigned/GLuint/
Use MAX_INSTRUCTIONS instead of magic 100, check program length after it's made.
Use _mesa_init_instruction() instead of _mesa_memset().

18 years agocall gluDeleteQuadric() to fix mem leak
Brian Paul [Sat, 19 Nov 2005 23:09:14 +0000 (23:09 +0000)]
call gluDeleteQuadric() to fix mem leak

18 years agoin run_texnorm_stage() check if the texture unit is really enabled before trying...
Brian Paul [Sat, 19 Nov 2005 17:08:15 +0000 (17:08 +0000)]
in run_texnorm_stage() check if the texture unit is really enabled before trying to normalize the texcoords

18 years agoupdate some vars
Brian Paul [Sat, 19 Nov 2005 16:50:36 +0000 (16:50 +0000)]
update some vars

18 years agoNo longer derive 'ati_fragment_shader' from 'program' class. Only the
Brian Paul [Sat, 19 Nov 2005 16:43:04 +0000 (16:43 +0000)]
No longer derive 'ati_fragment_shader' from 'program' class.  Only the
program->Id and program->RefCount fields were used and ATI fragment shaders
didn't have too much in common with ARB/NV vertex/fragment programs anyway.

18 years agoremove #include arbfragparse.h
Brian Paul [Sat, 19 Nov 2005 15:44:53 +0000 (15:44 +0000)]
remove #include arbfragparse.h

18 years agoremove #include arbfragparse.h, s/PI/M_PI/
Brian Paul [Sat, 19 Nov 2005 15:42:39 +0000 (15:42 +0000)]
remove #include arbfragparse.h, s/PI/M_PI/

18 years agoremoved arbfragparse.[ch] arbvertparse.[ch]
Brian Paul [Sat, 19 Nov 2005 15:37:00 +0000 (15:37 +0000)]
removed arbfragparse.[ch] arbvertparse.[ch]

18 years agoRemove the _mesa_parse_arb_vertex/fragment_program() functions into
Brian Paul [Sat, 19 Nov 2005 15:36:28 +0000 (15:36 +0000)]
Remove the _mesa_parse_arb_vertex/fragment_program() functions into
arbprogparse.c and remove arbvertparse.[ch] and arbfragparse.[ch].
Clean up quite a bit of the arb parsing code.
Rewrite parser extension code to avoid a mess of string operations every
time the parser was used.

18 years agoupdate comments, remove ^M chars
Brian Paul [Sat, 19 Nov 2005 14:57:47 +0000 (14:57 +0000)]
update comments, remove ^M chars

18 years agomove a bunch of gl2/shading language structs from mtypes.h to shaderobjects.h
Brian Paul [Sat, 19 Nov 2005 14:49:25 +0000 (14:49 +0000)]
move a bunch of gl2/shading language structs from mtypes.h to shaderobjects.h

18 years agoTry to detect when native support to given texture width is not available.
Aapo Tahkola [Fri, 18 Nov 2005 20:53:50 +0000 (20:53 +0000)]
Try to detect when native support to given texture width is not available.

18 years agoFix typo causing secondary color not to work properly.
Aapo Tahkola [Fri, 18 Nov 2005 18:05:19 +0000 (18:05 +0000)]
Fix typo causing secondary color not to work properly.

18 years agoReduce stderr noise.
Aapo Tahkola [Fri, 18 Nov 2005 17:57:27 +0000 (17:57 +0000)]
Reduce stderr noise.

18 years agoIn _mesa_RenderbufferStorageEXT(), try to avoid needless reallocation.
Brian Paul [Fri, 18 Nov 2005 02:24:14 +0000 (02:24 +0000)]
In _mesa_RenderbufferStorageEXT(), try to avoid needless reallocation.
Simplify _mesa_GetRenderbufferParameterivEXT() queries.

18 years agomove _mesa_update_state() calls before error tests that depend on framebuffer complet...
Brian Paul [Thu, 17 Nov 2005 05:01:26 +0000 (05:01 +0000)]
move _mesa_update_state() calls before error tests that depend on framebuffer completeness

18 years agooptimize drawing GL_DEPTH_STENCIL pixels into a GL_DEPTH_STENCIL renderbuffer
Brian Paul [Thu, 17 Nov 2005 05:00:17 +0000 (05:00 +0000)]
optimize drawing GL_DEPTH_STENCIL pixels into a GL_DEPTH_STENCIL renderbuffer

18 years agos/MEMCPY/_mesa_memcpy/ and fix typo
Brian Paul [Thu, 17 Nov 2005 04:51:56 +0000 (04:51 +0000)]
s/MEMCPY/_mesa_memcpy/ and fix typo

18 years agooptimize case of reading GL_DEPTH_STENCIL pixels from GL_DEPTH_STENCIL renderbuffer
Brian Paul [Thu, 17 Nov 2005 04:51:08 +0000 (04:51 +0000)]
optimize case of reading GL_DEPTH_STENCIL pixels from GL_DEPTH_STENCIL renderbuffer

18 years agodelete frame/renderbuffers upon exit, more error checking
Brian Paul [Thu, 17 Nov 2005 02:08:10 +0000 (02:08 +0000)]
delete frame/renderbuffers upon exit, more error checking

18 years agoimproved error checking in error_check_format_type()
Brian Paul [Thu, 17 Nov 2005 02:05:42 +0000 (02:05 +0000)]
improved error checking in error_check_format_type()

18 years agoFixes for x86_64 Unichrome.
Thomas Hellström [Wed, 16 Nov 2005 19:24:00 +0000 (19:24 +0000)]
Fixes for x86_64 Unichrome.

18 years agoBring in last minute 6_4 branch changes to the unichrome driver
Thomas Hellström [Wed, 16 Nov 2005 17:24:26 +0000 (17:24 +0000)]
Bring in last minute 6_4 branch changes to the unichrome driver
to the trunk.

18 years agoadded -ds option to test GL_EXT_packed_depth_stencil with framebuffer objects
Brian Paul [Wed, 16 Nov 2005 14:48:11 +0000 (14:48 +0000)]
added -ds option to test GL_EXT_packed_depth_stencil with framebuffer objects

18 years agoadditional comments about GL_DEPTH_STENCIL buffers
Brian Paul [Wed, 16 Nov 2005 04:17:20 +0000 (04:17 +0000)]
additional comments about GL_DEPTH_STENCIL buffers

18 years agoadded depthstencil.[ch]
Brian Paul [Wed, 16 Nov 2005 04:12:08 +0000 (04:12 +0000)]
added depthstencil.[ch]

18 years agoUse new gl_framebuffer _Depth/_StencilBuffer fields instead of
Brian Paul [Wed, 16 Nov 2005 04:09:26 +0000 (04:09 +0000)]
Use new gl_framebuffer _Depth/_StencilBuffer fields instead of
Attachment[BUFFER_DEPTH/STENCIL].Renderbuffer.  The former may be wrappers
around combined depth/stencil renderbuffers attached at the later points.

18 years agoadded depthstencil.c
Brian Paul [Wed, 16 Nov 2005 04:06:32 +0000 (04:06 +0000)]
added depthstencil.c

18 years agoSupport for combined depth/stencil renderbuffers (GL_EXT_packed_depth_stencil).
Brian Paul [Wed, 16 Nov 2005 04:05:54 +0000 (04:05 +0000)]
Support for combined depth/stencil renderbuffers (GL_EXT_packed_depth_stencil).
depthstencil.c provides wrappers for treating depth/stencil buffers either
as regular depth or stencil renderbuffers.

18 years agoadded _mesa_new_depthstencil_renderbuffer() for combined depth/stencil buffers
Brian Paul [Wed, 16 Nov 2005 04:00:31 +0000 (04:00 +0000)]
added _mesa_new_depthstencil_renderbuffer() for combined depth/stencil buffers

18 years agoAdded error checking in _tnl_Begin to detect incomplete framebuffer.
Brian Paul [Wed, 16 Nov 2005 02:47:16 +0000 (02:47 +0000)]
Added error checking in _tnl_Begin to detect incomplete framebuffer.
Set new tnl->DiscardPrimitive field to true when such error is
detected to discard the glBegin/End primitive when flushing.
Added some new comments.

18 years agochange an assertion
Brian Paul [Wed, 16 Nov 2005 02:00:34 +0000 (02:00 +0000)]
change an assertion

18 years agoReplace GL_POLYGON+1 with PRIM_OUTSIDE_BEGIN_END
Brian Paul [Wed, 16 Nov 2005 01:58:19 +0000 (01:58 +0000)]
Replace GL_POLYGON+1 with PRIM_OUTSIDE_BEGIN_END

18 years agoadd GL_INVALID_FRAMEBUFFER_OPERATION_EXT in _mesa_error()
Brian Paul [Wed, 16 Nov 2005 01:11:06 +0000 (01:11 +0000)]
add GL_INVALID_FRAMEBUFFER_OPERATION_EXT in _mesa_error()

18 years agofix color interpolation problem reported on VMS
Brian Paul [Tue, 15 Nov 2005 15:08:03 +0000 (15:08 +0000)]
fix color interpolation problem reported on VMS

18 years agocheck for ctx==NULL, bug 4087
Brian Paul [Tue, 15 Nov 2005 14:50:55 +0000 (14:50 +0000)]
check for ctx==NULL, bug 4087

18 years agoFix problem in stencil_and_ztest_span() when using h/w stencil buffer.
Brian Paul [Tue, 15 Nov 2005 04:01:29 +0000 (04:01 +0000)]
Fix problem in stencil_and_ztest_span() when using h/w stencil buffer.
Fix a comment typo.
Remove some unneeded #includes.

18 years agoTwo subtle things missed on the previous commit.
Ian Romanick [Tue, 15 Nov 2005 01:55:46 +0000 (01:55 +0000)]
Two subtle things missed on the previous commit.

18 years agoAdd the ability for interleave to test passing invalid format enums
Ian Romanick [Tue, 15 Nov 2005 01:46:49 +0000 (01:46 +0000)]
Add the ability for interleave to test passing invalid format enums
and invalid stride values (see bugzilla #5058).

18 years agoSimple test of glInterleavedArrays functionality.
Ian Romanick [Mon, 14 Nov 2005 23:31:05 +0000 (23:31 +0000)]
Simple test of glInterleavedArrays functionality.

18 years agoremove unneeded RasterPosValid check
Brian Paul [Mon, 14 Nov 2005 18:23:56 +0000 (18:23 +0000)]
remove unneeded RasterPosValid check

18 years agoImprove _mesa_print_program().
Brian Paul [Sat, 12 Nov 2005 23:25:49 +0000 (23:25 +0000)]
Improve _mesa_print_program().
Added make_state_string() to produce a string from a GL state vector.

18 years agofix comment for TexSrcTarget
Brian Paul [Sat, 12 Nov 2005 23:24:32 +0000 (23:24 +0000)]
fix comment for TexSrcTarget

18 years agoAdded _mesa_light() helper function so we can avoid transforming then
Brian Paul [Sat, 12 Nov 2005 18:58:12 +0000 (18:58 +0000)]
Added _mesa_light() helper function so we can avoid transforming then
un-transforming light positions and spot directions when popping light
state off the attribute stack.

18 years agoAdded OSMesaColorClamp(), bug 4917
Brian Paul [Sat, 12 Nov 2005 18:44:29 +0000 (18:44 +0000)]
Added OSMesaColorClamp(), bug 4917

18 years agoupdate an assertion
Brian Paul [Sat, 12 Nov 2005 17:59:05 +0000 (17:59 +0000)]
update an assertion

18 years agoupdate some assertions
Brian Paul [Sat, 12 Nov 2005 17:56:18 +0000 (17:56 +0000)]
update some assertions

18 years agoMove stuff common to vertex/fragment_program into the base class, including:
Brian Paul [Sat, 12 Nov 2005 17:53:14 +0000 (17:53 +0000)]
Move stuff common to vertex/fragment_program into the base class, including:
Instructions, InputsRead, OutputsWritten, and Parameters.
Also, added debug functions: _mesa_print_instruction(),
_mesa_print_program_parameters() and revamp _mesa_print_program().

18 years agoMake _mesa_is_proxy_texture() non-static and use in a few more places.
Brian Paul [Fri, 11 Nov 2005 15:33:36 +0000 (15:33 +0000)]
Make _mesa_is_proxy_texture() non-static and use in a few more places.
Use COPY_4FV() where possible.
Added some comments, clean-ups.

18 years agoSupport for "fragment program to C" and TCC has been removed from the
Ian Romanick [Thu, 10 Nov 2005 16:25:37 +0000 (16:25 +0000)]
Support for "fragment program to C" and TCC has been removed from the
source code, so there is no reason for this config to exist.  This
fixes fdo bugzilla #5004.

18 years agos/MAX_LIGHTS/ctx->Const.MaxLights/ and spruce up some comments
Brian Paul [Thu, 10 Nov 2005 16:22:56 +0000 (16:22 +0000)]
s/MAX_LIGHTS/ctx->Const.MaxLights/ and spruce up some comments

18 years agofix popping of GL_SPOT_DIRECTION (bug 5005)
Brian Paul [Thu, 10 Nov 2005 16:19:44 +0000 (16:19 +0000)]
fix popping of GL_SPOT_DIRECTION (bug 5005)

18 years agoremove -DMESA_DEBUG
Brian Paul [Thu, 10 Nov 2005 05:10:49 +0000 (05:10 +0000)]
remove -DMESA_DEBUG

18 years agoMove code to enable FP exceptions into debug.c (set MESA_DEBUG=fpexceptions).
Brian Paul [Thu, 10 Nov 2005 05:10:25 +0000 (05:10 +0000)]
Move code to enable FP exceptions into debug.c (set MESA_DEBUG=fpexceptions).
Get rid of MESA_DEBUG preprocessor symbol, just use DEBUG instead.

18 years agofix popping of GL_EYE_PLANE state (bug 4996)
Brian Paul [Wed, 9 Nov 2005 16:52:21 +0000 (16:52 +0000)]
fix popping of GL_EYE_PLANE state (bug 4996)

18 years agoBug 4996.
Brian Paul [Wed, 9 Nov 2005 16:30:50 +0000 (16:30 +0000)]
Bug 4996.
Replace use of FLOAT_TO_USHORT with either CLAMPED_FLOAT_TO_USHORT or
UNCLAMPED_FLOAT_TO_USHORT.  Same should be done for UBYTE, UINT, etc.

18 years agouse UNCLAMPED_FLOAT_TO_USHORT/UBYTE in clear_rgba_buffer() (bug #4992)
Brian Paul [Wed, 9 Nov 2005 01:17:33 +0000 (01:17 +0000)]
use UNCLAMPED_FLOAT_TO_USHORT/UBYTE in clear_rgba_buffer() (bug #4992)

18 years agoMove COPY_FLOAT() macro down into glide driver.
Brian Paul [Wed, 9 Nov 2005 00:56:51 +0000 (00:56 +0000)]
Move COPY_FLOAT() macro down into glide driver.
Rewrite COPY_4FV() macro to not use COPY_FLOAT(), and use integer moves as
originally intended.

18 years agoAt keithw's request, remove all traces of the "fragment program to C" and
Ian Romanick [Tue, 8 Nov 2005 22:54:22 +0000 (22:54 +0000)]
At keithw's request, remove all traces of the "fragment program to C" and
TCC experiment.

18 years agoThis patch adds the missing NV_vertex_program2 and NV_vertex_program3
Ian Romanick [Tue, 8 Nov 2005 22:40:26 +0000 (22:40 +0000)]
This patch adds the missing NV_vertex_program2 and NV_vertex_program3
instructions to the various internal tables.  It does not add support for
them to the parser nor does it add support for them to the program
interpreter.

It also corrects some errors in the comments in program_instruction.h.

This patch breaks the instruction union in t_vb_arbprogram.h.  The opcode
field in that union was only 6 bits.  When there were only 59+3 instructions
that worked fine. However, this patch increases the base instruction count
to 69.  This requires 7 bits.  The problem is that increasing the opcode
width to 7 bits increases the size of instruction::rsw to 33 bits.  I've
increased the size of the union to 64-bit, but this is just a temporary hack
(and probably breaks the build on some systems).

18 years agos/_mesa_debug_fp_inst/_mesa_print_program/
Brian Paul [Tue, 8 Nov 2005 14:53:24 +0000 (14:53 +0000)]
s/_mesa_debug_fp_inst/_mesa_print_program/

18 years agoremove _mesa_debug_fp_inst()
Brian Paul [Tue, 8 Nov 2005 14:52:51 +0000 (14:52 +0000)]
remove _mesa_debug_fp_inst()

18 years agosome initial work on upcoming GL_EXT_framebuffer_blit extension
Brian Paul [Tue, 8 Nov 2005 14:45:48 +0000 (14:45 +0000)]
some initial work on upcoming GL_EXT_framebuffer_blit extension

18 years agoremove a bunch of extension stuff that's in glxext.h
Brian Paul [Tue, 8 Nov 2005 14:44:07 +0000 (14:44 +0000)]
remove a bunch of extension stuff that's in glxext.h

18 years agominor work in _mesa_print_program()
Brian Paul [Tue, 8 Nov 2005 14:42:52 +0000 (14:42 +0000)]
minor work in _mesa_print_program()

18 years agoremove unneeded #includes
Brian Paul [Tue, 8 Nov 2005 14:41:41 +0000 (14:41 +0000)]
remove unneeded #includes

18 years agoremove unneeded #includes
Brian Paul [Mon, 7 Nov 2005 17:36:34 +0000 (17:36 +0000)]
remove unneeded #includes

18 years agos/_mesa_debug_fp_inst/_mesa_print_program/
Brian Paul [Mon, 7 Nov 2005 16:03:46 +0000 (16:03 +0000)]
s/_mesa_debug_fp_inst/_mesa_print_program/