Kristian Høgsberg
b8326b011d
Fix glut to work with -fvisibility=hidden
The GLUTAPI #define used in the header file to mark the font structs
visible wasn't kicking in because of the #define glutBitmap9By15 XXX
prior to #include <GL/glut.h>. High quality code... worked around by
copying the GLUTAPI specifier to the invidual C files.
15 years ago
Kristian Høgsberg
8d62eb4599
Export a few glapi functions used by gallium and r300
Fixes breakage from -fvisibility-hidden commit.
15 years ago
Francis Galiegue
a60084088b
mesa: fix blend enable/disable calls in meta.c code
Fixes regression in some DRI drivers since the GL_EXT_draw_buffers2 changes.
Signed-off-by: Brian Paul <brianp@vmware.com>
15 years ago
Brian Paul
1fbc71937f
mesa: added _mesa_GetBufferParameteri64v()
This is a new function in GL 3.2. No dispatch for this function yet.
15 years ago
José Fonseca
52eb3e4235
scons: Build glew on all platforms.
It is required for progs.
15 years ago
José Fonseca
8a318edd08
scons: Put glut and glew shared libraries into build/xxx/bin or lib.
Use bin subdir for windows dlls, lib for unices.
15 years ago
José Fonseca
ee39dc20e6
python: Don't generate a import library for python module either.
15 years ago
José Fonseca
6f19ec64fc
i965: Add missing include.
15 years ago
José Fonseca
187066caa0
gdi: Don't generate import libraries for opengl32.dll.
Both MinGW and MSVC include opengl32 import libraries, and its safer to
always use those.
15 years ago
José Fonseca
14a8c9dac7
scons: Fix glew build on MSVC.
The environment for building the DLL needs to be quite different from
the environment for building the programs, in order to get
the dllexport/dllimport attribute done currectly. I don't know how MinGW
managed to build the programs, but MS linker refuses to link symbols with
mismatching attributes.
15 years ago
José Fonseca
c852e960cc
util: Silent potential loss of precision warnings.
Also ensure multiplication doesn't happen for negative numbers.
15 years ago
Igor Oliveira
9595b59247
tgsi: Add missing semantic name in text parser.
15 years ago
José Fonseca
486ccb55a8
r300: Fix scons build.
15 years ago
José Fonseca
cf9be46c01
llvmpipe: Add missing include path.
The abscense was being masked previously.
15 years ago
José Fonseca
c847a13d38
gallium: Generate a single library for auxiliaries with Make too.
15 years ago
José Fonseca
f8f4757d46
scons: Aggregate all tiny libraries in a single library.
Makes integration of gallium into out of tree components much easier. No
pratical change for components in this tree,
15 years ago
José Fonseca
fc8e0b97e5
gallium: Remove the sct module.
Not used, and its functionality is now addressed by
pipe_context::is_texture/buffer_referenced callbacks.
15 years ago
José Fonseca
7bbf7f94ea
scons: Build progs together with everything else.
This is a substantial reorganization, This particular commit enables:
- building the progs for unices platforms
- glew is now built as a shared library (it is the default, and it is
inconvenient and pointless to shift away from that default)
- all progs get built by default
15 years ago
José Fonseca
cbb23523a8
glsl: Ignore programs.
15 years ago
José Fonseca
3d747eded4
scons: Don't globally define WIN32_LEAN_AND_MEAN.
Some of the demo progams legitimately need the functionality
that's disabled by WIN32_LEAN_AND_MEAN.
Instead the solution should be to define WIN32_LEAN_AND_MEAN just before
including windows.h on a case by case basis.
15 years ago
José Fonseca
04c7f483b4
mesa: Make condrender.[ch] prototypes match.
GLAPI on windows is more than "extern" -- it includes the --, so the
mismatch between condrender.[ch] prototypes causes "different linkage"
errors on windows.
15 years ago
Christoph Bumiller
45a01bc5bd
nv50: small fix for handling "dangerous" swizzles
15 years ago
Brian Paul
d14beea534
mesa: remove a line of dead code
15 years ago
Brian Paul
f10470e3fe
mesa: enable ColorMaskIndexed in display lists
15 years ago
Brian Paul
fcc2e1a729
mesa: enable GL_EXT_draw_buffers2 for sw drivers
15 years ago
Brian Paul
aa491c19b9
mesa: turn on NV_conditional_render for software drivers
15 years ago
Brian Paul
ab26682eb4
swrast: add check for conditional rendering
15 years ago
Brian Paul
699cfaeb3c
tnl: add check for conditional rendering
15 years ago
Brian Paul
ff3a52643d
mesa: plug in API functions for conditional rendering
15 years ago
Brian Paul
007b1f42c4
mesa: added dispatch for GL_NV_conditional_render extension
15 years ago
Brian Paul
5a0eb89da5
mesa: added FLUSH_VERTICES(), more comments
15 years ago
Brian Paul
2be0d77a97
mesa: add flag for GL_NV_conditional_render extension
15 years ago
Brian Paul
0fbe828c1d
mesa: _mesa_Begin/EndConditionalRender() functions
For GL_NV_conditional_render and GL3.
The drawing functions don't check the query object yet.
No API dispatch yet.
15 years ago
Brian Paul
534e005185
mesa: make _mesa_lookup_query_object() an non-private inline function
15 years ago
Brian Paul
195e7657e2
swrast: use different temp array in _swrast_get_dest_rgba()
When using multiple color drawbuffers with blending/logicop/masking we
were overwriting color values which we still needed.
15 years ago
Christoph Bumiller
4e4244b910
nv50: fix TEXLOD sequence and use it only in FPs
15 years ago
Christoph Bumiller
616ddc8dfa
nv50: cannot kill branch if immediate is used
The immediate's bits eat the condition bits.
15 years ago
Christoph Bumiller
b3425bc360
nv50: make assimilate_temp safe
Cannot change hw reg assigned to a TGSI TEMP on the fly if
we are in a loop, conditional, or can jump around wildly.
15 years ago
Christoph Bumiller
d9ae8f31d5
nv50: handle TGSI_OPCODE_EXP,LOG
Not that they make much sense on nv50, but we also do LIT ...
15 years ago
Christoph Bumiller
f2cca04bd8
nv50: add support for subroutines
15 years ago
Christoph Bumiller
170cdb4507
nv50: alloc_reg on reg_instance
If we create multiple instances of an nv50_reg referencing
them same resource, register allocation from alloc_reg has
to be done with the original nv50_reg.
15 years ago
Christoph Bumiller
0ba518e327
nv50: multiply polygon offset units by 2
15 years ago
Christoph Bumiller
4d2551beb7
nv50: neg and abs modifiers for flops
Also fixes RSQ of negative sources.
15 years ago
Christoph Bumiller
3019afdbd8
nv50: don't negate immediates in set_immd
This negation would only be triggered in situations
where it's incorrect.
The caller of set_immd should negate the immediate value
in the instruction itself if desired, and will also know
if it's a float or an int.
ADD TEMP[0], CONST[0], -IMMD[0] would load the immediate
into extra TEMP, negated, and set the negate flag in add
as well - double negation.
15 years ago
Vinson Lee
6e0584932b
mesa: Silence unused variable warning.
15 years ago
Brian Paul
16e91d4c0e
mesa: implement _mesa_GetStringi() for GL3
Note: not plugged into the dispatch table yet.
15 years ago
Brian Paul
56bdaca03e
mesa: _mesa_get_enabled_extension() function
15 years ago
Brian Paul
802b808939
mesa: implement GL3 GL_NUM_EXTENSIONS query
15 years ago
Brian Paul
1ec6de9f94
mesa: simplify some extension testing code
15 years ago
Brian Paul
05fb922e61
mesa: display list support for glClearBuffer functions
Note: some code disabled until dispatch table supports GL3 entrypoints.
15 years ago