Brian
ad053d90f0
Replace repeat_remainder() with a simpler macro that just casts args to unsigned.
2007-10-17 14:30:44 -06:00
Brian
906768316d
Replace repeat_remainder() with simpler macro that just casts args to unsigned.
2007-10-17 14:29:12 -06:00
Brian
df4410a597
reorder params to get_texel()
2007-10-17 14:16:42 -06:00
Brian
3d6f9d904f
implement 3D texture sampling
2007-10-17 14:13:21 -06:00
Kristian Høgsberg
6c753ad51d
Pull workaround for unset GLX_DRAWABLE_TYPE back in.
...
The old version just set GLX_DRAWABLE_TYPE to GLX_WINDOW_BIT for
configs received through glXGetVisualConfigs and to
GLX_WINDOW_BIT | GLX_PIXMAP_BIT for configs received as FBConfigs.
The X server needs to send this info, but keep the workaround for now.
Fixes #12835 .
2007-10-17 15:06:11 -04:00
Kristian Høgsberg
a5b4bb393f
glxinfo: Also print number of fbconfigs.
2007-10-17 15:06:11 -04:00
Brian
7392dac962
When in GL_FEEDBACK mode, make sure we emit color and texcoord registers.
2007-10-17 12:42:29 -06:00
Brian
38743e2ef1
generate selection hit if in selection mode and pos is not clipped
2007-10-17 12:32:21 -06:00
Brian
4338f0f709
Update framebuffer state in response to _NEW_COLOR (set by glDrawBuffer)
2007-10-17 12:27:40 -06:00
Brian
2dd27cfdd9
Fix viewport Z scale/bias to get the right Z values from drawing the quad.
2007-10-17 11:24:06 -06:00
Brian
4f23468bd0
don't crash if texture border is used (unsupported for now)
2007-10-17 10:52:30 -06:00
Brian
863cc0af74
fix square point rasterization
2007-10-17 10:51:55 -06:00
Michel Dänzer
86b81ef5aa
Don't call the driver clear hook when the effective scissor rectangle is empty.
2007-10-17 18:37:19 +02:00
Michel Dänzer
b453112133
i915: Don't emit 'empty' blit rectangles.
...
The hardware seems to interpret them differently and produce unexpected
results...
2007-10-17 18:37:12 +02:00
Kristian Høgsberg
87966baa8d
Fixup a couple of thinkos in glxinfo changes.
2007-10-17 10:15:10 -04:00
Brian
7db3cf8c48
lower clamp bound for UNCLAMPED_FLOAT_TO_SHORT() is -1
2007-10-16 18:46:14 -06:00
Brian
45700ac280
use new st_clear_accum_buffer() function
2007-10-16 18:45:42 -06:00
Brian
2de9477fee
New st_clear_accum_buffer() function (can't use pipe->clear() since it doesn't handle negative color values)
...
Also, remove unneeded clamping in the accum ops.
2007-10-16 18:45:28 -06:00
Brian
4959617164
front/back determination was wrong
2007-10-16 17:59:24 -06:00
Brian
29cfec1581
remove debug assertion
2007-10-16 17:56:13 -06:00
Brian
efdacc90b4
Update mask calculations for point drawing.
2007-10-16 17:43:41 -06:00
Brian
bd35c53143
Fix broken polygon stippling (see comments for details).
2007-10-16 17:37:46 -06:00
Brian
0edd490a96
Redefine QUAD_TOP_LEFT, TOP_RIGHT, etc. to reflect Y=0=TOP raster layout.
2007-10-16 17:36:37 -06:00
Kristian Høgsberg
6c533ea2d1
Handle fbconfigs and glx visuals separately.
...
The old implementation fetches fbconfigs or glx visuals once and assumes the list
describes both fbconfigs and glx visuals. This patch splits it up and fetches
visuals and fbconfigs in two steps and keep the two lists separate. A server
could have no glx visuals or no glx fbconfigs and the old code wouldn't know the
difference.
2007-10-16 16:07:52 -04:00
Kristian Høgsberg
791ad0e77f
Implement support for printing glx fbconfigs in glxinfo.
2007-10-16 16:07:52 -04:00
Kristian Høgsberg
f7d1d554b1
glxinfo: Only print visuals that actually support GLX.
2007-10-16 16:07:52 -04:00
Eric Anholt
919f617d08
Replace symlink generation from i915 with files in intel/ and symlinks there.
2007-10-16 12:38:55 -07:00
Brian
63b0b5b6c7
fix perspective-interpolated attribs for points, liens
2007-10-16 12:04:16 -06:00
Brian
ce0f2e88e3
fix blend term translation bug, rename some funcs
2007-10-16 08:53:08 -06:00
Michel Dänzer
3feefeeb35
i915: Make sure extensions that require TTM actually work.
2007-10-16 15:48:46 +02:00
Dave Airlie
70eb456a76
i915: fixup TTM interfaces to follow drm changes
2007-10-16 22:11:43 +11:00
Michel Dänzer
9c4d104e98
i915: Re-enable __DRItexOffsetExtension.
...
This seems to have got lost somehow during the recent DRI interface changes.
2007-10-16 13:01:44 +02:00
Brian
c838d4c876
finish remaining blend modes
2007-10-15 19:14:40 -06:00
Brian
cab0dce676
fix fog, rescale_normals bugs (from gallium branch)
2007-10-15 18:00:55 -06:00
Brian
cd54414b75
fix incorrect register in get_eye_normal() for rescale_normals case
2007-10-15 17:59:16 -06:00
Brian
b2605d5f80
GL_UNSIGNED_BYTE indexes
2007-10-15 17:27:54 -06:00
Brian
7abc78a967
implement logicop
2007-10-15 17:26:01 -06:00
Brian
566c11254f
remove commented out #include
2007-10-15 15:31:24 -06:00
Brian
ce8988018c
check for width or height = 0 before calling driver Bitmap func
2007-10-15 15:30:45 -06:00
Brian
b1f136dba2
Fix useabs logic in build_fog().
...
We always need to compute the absolute value of the fogcoord if we're
passing it through for per-fragment fog.
2007-10-15 15:30:13 -06:00
Brian
b4deb73fab
remove feedback hack
2007-10-15 15:05:39 -06:00
Brian
0585b4e746
Undo prev changes.
2007-10-15 15:05:08 -06:00
Brian
65b1f6947f
setup vertex format for GL_FEEDBACK mode
2007-10-15 13:42:56 -06:00
Brian
520ad5f854
GL_SELECT mode works now
2007-10-15 13:25:13 -06:00
Brian
230225c5d7
formatting
2007-10-15 13:06:53 -06:00
Brian
8630e5edb3
call pipe->set_vertex_buffer() after drawing/unreferencing.
...
This fixes potential a stale reference to vertex buffers.
Fixes cubemap demo on i915.
2007-10-15 13:05:15 -06:00
Brian
e3a729a681
fix logic for printing extended swizzles
2007-10-15 11:48:20 -06:00
Brian
369eefc34c
add 'normalized_coords' field to pipe_sampler_state
...
This controls whether texcoords are interpreted as-is or scaled up from [0,1].
Fixes glDrawPixels/glBitmap problems on i915 when image is non power-of-two.
Also, cleans up the CSO sampler state for i915 a bit.
2007-10-15 11:47:53 -06:00
Brian
c8bf63e992
feedback/rasterpos fix-ups
2007-10-15 11:28:25 -06:00
Brian
3eeef8aabe
Change 'drawing' field to boolean.
2007-10-15 10:30:38 -06:00