Dave Airlie
4b39a0da89
texenvprogram: fix for ARB_draw_buffers.
piglit has a test called fbo-drawbuffers, this fails for me on r300g,
and fixing the texenv program to use the DATA outputs fixes it.
Signed-off-by: Dave Airlie <airlied@redhat.com>
15 years ago
Zack Rusin
821abff8c0
draw llvm: highly reduce the compilation times for draw llvm
our code resets pipe_vertex_buffer's with different offsets when rendering
vbo, meaning that we kept creating insane number of shaders even for simple
apps e.g. geartrain had 54 shaders and it was taking almost 27 seconds just to
compile them. this patch passes pipe_vertex_buffer's to the jit function and lets
it to the stride/buffer_offset computation at run time. the slowdown at runtime
is largely unnoticable but the we go from 54 shaders to 3, and from 27 seconds to less
than 1.
15 years ago
José Fonseca
40bac07f9b
gallivm: Get the format translation logic write.
15 years ago
José Fonseca
2c06fa4682
util: Support fixed formats conversion.
15 years ago
José Fonseca
783e94243a
util: Add copyright header to u_half.h
15 years ago
José Fonseca
f15469039a
util: Remove the half typedef from p_compiler.h.
Unnecessary, and doesn't even guarantee size.
15 years ago
José Fonseca
68df294997
llvmpipe: Add missing include.
15 years ago
José Fonseca
d96e87c3c5
util: Use stubs for the dynamically loaded S3TC functions.
Loosely based on Luca Barbieri's commit
52e9b990a1
.
15 years ago
José Fonseca
a46ca64562
draw: Fix MSVC build (snprintf->util_snprintf).
15 years ago
José Fonseca
ecdd6bc3e2
util: Remove u_tile.c YCbCr's.
Superseded by u_format_yuv.c. Also PIPE_FORMAT_YUYV's interpretation was
inconsistent: it was being interpreted as VYUY.
15 years ago
José Fonseca
7f9444050f
util: Implement YUV and subsampled RGB format conversion.
15 years ago
Brian Paul
78fd65fd2c
draw: init draw->pt.middle.general = NULL just to be safe
This field should be null from the initial calloc() of the draw context,
but let's be safe (and improve understanding of the code).
15 years ago
José Fonseca
da17623c33
llvmpipe: Fix USE_DRAW_LLVM build. Use lp_build_engine.
15 years ago
Michel Dänzer
765dc9fc32
r300: Initialize compiler.max_temp_regs for blits.
Blits were broken since commit e41a64591b
('r300/compiler: make the max number of fragment shader temporaries
adjustable').
15 years ago
Vinson Lee
95bfd0067c
draw llvm: Remove unnecessary headers.
15 years ago
Vinson Lee
1e51bbf77f
gallium: Add files to Makefile.
This was missed in commit ae69f9fbf0
.
New files from the gallium_draw_llvm merge were added to SCons but
not make.
15 years ago
Vinson Lee
88a0d7e1bf
llvmpipe: Remove unused variable.
15 years ago
Ben Skeggs
2d606c13ff
nouveau: allow multiple simultaneous maps of a pipe_transfer
I'm not entirely convinced we want this behaviour (the underlying nouveau_bo
doesn't support it either), but since certain parts of the mesa state
tracker appear to require it lets make it work for now.
15 years ago
Ben Skeggs
841b327a51
nv50: fix assertion that caused piglit texturing/texrect-many to fail
15 years ago
Zack Rusin
c60a161cc5
scons: define DRAW_LLVM if we're building it
15 years ago
Zack Rusin
1570760a97
draw llvm: disable printing of the LLVM ir
15 years ago
Marc Dietrich
0963099d5e
cell: fix build
compile fix for cell driver.
Signed-off-by: Brian Paul <brianp@vmware.com>
15 years ago
Brian Paul
45c8909148
gallium/draw: add additional DRAW_LLVM check
Fixes build breakage.
15 years ago
Zack Rusin
ae69f9fbf0
Merge branch 'gallium_draw_llvm'
15 years ago
José Fonseca
fe130a7e5e
llvmpipe: Support S3TC when util_format_s3tc_enabled is set.
15 years ago
José Fonseca
728741a3bd
gallivm: Fallback to calling util_format_description::fetch_float for any format we can't code LLVM IR directly.
15 years ago
José Fonseca
306835cc0f
gallivm: Move the global LLVM objects (module, engine, provider, target) into here.
15 years ago
Zack Rusin
695a029e9b
llvmpipe: use a define to decide whether to use draw llvm paths
right now disabled by default
15 years ago
Zack Rusin
06bda76c08
draw llvm: disable debugging output
15 years ago
Zack Rusin
323fdd8ae5
draw llvm: implement simple pipeline caching using variants
15 years ago
Zack Rusin
1e0bf24139
draw llvm: fix iteration for larger vertex arrays
we were trying to store the outputs starting at the same offset we
were using for the input arrays, which was writing beyond the end of
the output array.
15 years ago
Zack Rusin
de0647dbad
draw llvm: iterate with the correct stop over the outputs
it's whatever the var step is (4 usually) not an unconditional 1
15 years ago
Michal Krol
859642c655
util: Respect destination stride in pipe_get_tile_swizzle().
15 years ago
Zack Rusin
aeaf2cf18f
draw llvm: fix draw arrays
we don't index within the outputs but only within the inputs
15 years ago
José Fonseca
04ea6f5dd8
util: Make half float lookup tables constant.
15 years ago
José Fonseca
05b494c101
util: Remove the hand written SRGB format support code.
15 years ago
José Fonseca
10dd0cad67
util: Support all SRGB formats.
Based on code from Brian Paul and Michal Krol.
15 years ago
Chia-I Wu
d18d0fdcd8
egl_dri2: Flush before context switch and swap buffers.
DRI does not define any callback to flush the current context. GLX
loader simply calls glFlush. Follow the GLX loader here.
15 years ago
Chia-I Wu
7915151f2d
st/dri: Implement DRI image extension.
15 years ago
Chia-I Wu
216c76c820
progs/egl: Correctly check GL_OES_EGL_image.
The hack was added because GL_OES_EGL_image was not exported in the
extension string.
15 years ago
Chia-I Wu
2002e4d06e
mesa: Add OES_EGL_image to extension list.
15 years ago
Chia-I Wu
0942ed45b3
progs/egl: Fix the blank window in pbuffer demo.
EGL requires eglSwapBuffers to be called on the current surface.
15 years ago
Chia-I Wu
f51f62e8ed
progs/egl: Port drawtex and torus to eglut.
This brings the demos also to KMS and removes about 400 duplicated lines
of code.
15 years ago
Brian Paul
7d2db19fe5
st/mesa: reformatting
15 years ago
Brian Paul
489eced800
st/mesa: put fragment wpos code into separate function
15 years ago
Zack Rusin
9dd70e7b85
draw llvm: fix loop iteration and vertex header offsets
the loop was doing a NE comparison which we could have skipped if the prim
was triangles (3 verts) and our step was 4 verts. also fix offsets in conversion
to aos.
15 years ago
Chia-I Wu
848945e5d6
egl: Unbind the old context in _eglBindContext.
The last commit incorrectly moved the code under an "else".
15 years ago
Chia-I Wu
bbe459b14d
egl: Fix eglMakeCurrent with different surfaces.
0a82fadcdd
seems to trigger a bug in
_eglBindContext. Rework the logics yet again. It is simpler, and
hopefully correct this time.
15 years ago
Chia-I Wu
ffb6a8f552
st/es: Remove unnedded --whole-archive.
All public functions in the archives are either directly referenced or
indirectly referenced by _glapi_get_proc_address. There is no need for
--whole-archive.
15 years ago
Vinson Lee
4b5d488bc2
scons: Link expat in dri builds.
Fixes this i915g error.
i915_dri.so: undefined symbol: XML_ParserCreate
15 years ago