Jon Smirl
7012d01d88
First attempt at getting egl support up on dumb framebuffer.
Seems to be mostly working. Not all of egl API is implemented.
hace 21 años
Nicolai Haehnle
a6ed129dfc
Patch from Jeff Smith:
The type of vertex data is opaque in the emit_* functions, so use GLvoid*
instead of char*. This also eliminates some compiler warnings.
hace 21 años
Nicolai Haehnle
733bc876ee
Patch from Jeff Smith:
Fix a WARN_ONCE format string.
hace 21 años
Alan Hourihane
64034c4fb5
Remove MAX_VISUAL limitations of 100. If running dual head this can
be easily consumed. There are no limitations now and the VisualTable
is realloced when necessary.
hace 21 años
Keith Whitwell
846eb333ae
Calculate render inputs for tcl stage correctly (hint: they aren't the
same as tnl->render_inputs). Fixes recent tcl problems.
hace 21 años
Ian Romanick
c9a69a6968
Remove some unused structure fields, add some comments, and ifdef out some
dead code. This is just some clean-up work which should not have any
functional impact.
hace 21 años
Keith Whitwell
269e3895d9
new MESA_DEBUG option: disassem
hace 21 años
Keith Whitwell
5c72837af9
Rein in debug slightly
hace 21 años
Keith Whitwell
5f430c9976
Turn disassem off (oops).
hace 21 años
Keith Whitwell
714be699be
Add check for mask == NULL to the one routine missing it.
hace 21 años
Keith Whitwell
10432bcc0a
When lighting is enabled, but no lights are enabled, the scenecolor
becomes the result of lighting. When lighting is disabled,
pass-through incoming color value. Likewise, pass through incoming
texture values. (Based on patch by Aapo Tahkola)
Add compile-time configuration to switch between DP4 and MUL/MAD for
matrix-vector multiplications.
hace 21 años
Ben Skeggs
69a2f7cdd5
fix warnings in r300_texstate.c (Jeff Smith)
hace 21 años
Karl Schultz
db21f1c84f
The "P" suffix on APIENTRY and GLAPIENTRY is to be used for pointers to
functions, not for functions that return pointers. Restore protoype
for glGetString back to its correct form.
hace 21 años
Aapo Tahkola
4e68f4c1fa
VBOs.
hace 21 años
Keith Whitwell
1e5772f0ba
Don't let FragmentProgram._Active influence choice of vertex vs pixel
fog.
hace 21 años
Keith Whitwell
ac6728d2d9
Previously in TXP and TEX instructions, lambda was passed to
fetch_texel as zero, but I believe this is incorrect. The spec uses a
pseudocode function:
vec4 TextureSample(float s, float t, float r, float lodBias,
int texImageUnit, enum texTarget);
to specify the behaviour of TEX, TXB and TXP instructions. For TEX
and TXP, lodBias is passed as zero, TXB is passed with texcoord[4]. In our code we have
static void
fetch_texel( GLcontext *ctx, const GLfloat texcoord[4], GLfloat lambda,
GLuint unit, GLfloat color[4] )
and were passing zero and a biased lambda value respectively. The
difference is that TextureSample() would add in the lambda term
itself, while in our code the caller is expected to do this. Thus in
the TEX and TXP cases, it is necessary to pass an unbiased lambda
value for things to work out correctly.
hace 21 años
Keith Whitwell
49d8cbe8d1
Use _mesa_memset rather than memset
hace 21 años
Keith Whitwell
9d148e6b2b
Don't let FragmentProgram._Active influence choice of vertex vs pixel
fog.
hace 21 años
Keith Whitwell
363d0bcf01
Test for texcoord[3] == zero before dividing. Not so sure about this
test - if texcoord[3] is zero, we'd probably be fine except for an
ASSERT in IROUND_POS() which gets triggered by the inf values
created.
hace 21 años
Keith Whitwell
e490242b9a
Fix glean/conform problems. Don't generate so much output when
disassembling.
hace 21 años
Keith Whitwell
a582015905
Fix valgrind complaint, conform vertex order test.
hace 21 años
Keith Whitwell
3509fd8c1b
Rename temp_flag to temp_in_use. Use ctx->Const.MaxVertexProgramTemps
rather than MAX_NV_VERTEX_PROGRAM_TEMPS and deal with this possibly
being greater than 32.
hace 21 años
Keith Whitwell
93cd9237d7
Fix logic for allocating texture temporaries (Ben Skeggs).
Rename temp_flag, tex_temp_flag to make this clearer.
Respect ctx->Const.MaxFragmentProgramTemps limit.
hace 21 años
Adam Jackson
1243b829bb
int -> size_t to fix compile on LP64.
hace 21 años
Keith Whitwell
2fcaf7a529
Ensure programs don't overflow allocated instruction store.
hace 21 años
Keith Whitwell
a42fe19d8d
Fix some valgrind complaints
hace 21 años
Keith Whitwell
e57d5c4742
fix some valgrind complaints
hace 21 años
Keith Whitwell
5a5b4436cb
Improved detection of program changes.
hace 21 años
Keith Whitwell
3ffe8731e6
Double-buffer generated instructions and only notify driver when the
generated program differs from the previous one.
hace 21 años
Keith Whitwell
c5f5055097
Fix some valgrind complaints
hace 21 años
Keith Whitwell
dbeea25bb8
Double-buffer generated instructions and only notify driver when the
generated program differs from the previous one.
hace 21 años
Keith Whitwell
f29f2fc294
reduce the use of malloc and strdup for parameter lists
hace 21 años
Keith Whitwell
ab81d1fd99
don't be fooled into emitting padding for wpos when not used
hace 21 años
Keith Whitwell
d9fdb6c2bb
Missing from previous commit
hace 21 años
Keith Whitwell
9eef0da109
Update for FragmentProgram._Active
hace 21 años
Keith Whitwell
8b88f62fbd
Better driver notification on changes.
hace 21 años
Keith Whitwell
948fa3b295
get fog working with _TexEnvProgram
hace 21 años
Keith Whitwell
586f2c59fe
Temporary fix - delete and recreate texenvprogram so that drivers
notice when it changes.
hace 21 años
Jouk Jansen
e3b0c19ec9
Committing in .
OpenVMS compile support update for new buffer-code
Modified Files:
Mesa/src/mesa/drivers/x11/descrip.mms
Mesa/src/mesa/main/descrip.mms
Mesa/src/mesa/swrast/descrip.mms
----------------------------------------------------------------------
hace 21 años
Keith Whitwell
9ca8815d3b
Fix texenv segfault. Reported by Ben Skeggs.
hace 21 años
Keith Whitwell
ecb6bfc0ce
Try not to use the same temp reg as a TXP destination more than once,
as this also constitutes a texture indirection. Reported by Ben
Skeggs.
hace 21 años
Daniel Borca
fee163a61a
pathetic attempt to accomodate new frambuffer changes (still some work to do)
hace 21 años
Daniel Borca
0e26580c90
accomodate new frambuffer changes
hace 21 años
Daniel Borca
c8542705f7
fix some typos in FX code
hace 21 años
Keith Whitwell
435eff8b85
i915 will use _TexEnvProgram (if active)
hace 21 años
Keith Whitwell
276330b241
Use driver functions to create TexEnvProgram, TnlProgram
hace 21 años
Keith Whitwell
ff6723e326
check for null DrawBuffer values
hace 21 años
Keith Whitwell
1180fc13db
Fallback (rather than fail) on unknown program targets.
hace 21 años
Jon Smirl
5c6aec2f39
dri fb works using renderbuffers now in RGBA mode
hace 21 años
Jon Smirl
86300c6945
fbdri can draw double buffered now. Next step is to convert it
to use RenderBuffers.
hace 21 años