Commit graph

11572 commits

Author SHA1 Message Date
Brian
b7693ee559 Draw white square in lower-left corner to test orientation 2007-08-13 14:00:03 -06:00
Brian
21b9b8b74e fill in the get_tile() function so ReadPixels can work 2007-08-13 13:56:54 -06:00
Brian
eb450bbb40 flush pipe before reading image 2007-08-13 13:56:30 -06:00
Brian
0095be534d Change/fix surface allocation functions.
Use xmesa_new_color_surface() for front/back renderbuffer surfaces.
Use xmesa_surface_alloc() for everything else (textures, other renderbuffers)
2007-08-11 21:21:12 +01:00
Brian
5d42fdb9b7 mt->pitch must be at least 16 because of 64-byte alignment in sp_region.c (fix that someday) 2007-08-11 21:19:04 +01:00
Brian
e209ca866d do clipping in get_tile() 2007-08-11 21:18:33 +01:00
Brian
498c9e9782 added Bitmap() stub, call st_validate_state() in DrawPixels 2007-08-11 20:03:24 +01:00
Brian
24e21301e0 remove some temp pipe hacks 2007-08-11 19:57:50 +01:00
Brian
24864741c5 added st_cb_queryobj.c 2007-08-11 19:57:37 +01:00
Brian
01efb1dd8f Begin/EndQuery functions 2007-08-11 19:56:30 +01:00
Brian
bf383d1f54 repair breakage from recent pipe_winsys re-org 2007-08-11 17:04:12 +01:00
Brian
37fdc69a99 fix invalid usage of buffer_unreference()
Need to pass the address of the buffer ptr, not the buffer ptr.
Before, the region->buffer type was void * so it wasn't effectively
type-checked.  Changing the type to pipe_buffer_object* allows the
compiler to detect the error.  Fixing this solves a segfault.
2007-08-11 17:03:51 +01:00
Brian
83521ee66a notes/asserts for get/put_tile() 2007-08-11 17:00:56 +01:00
Brian
bec2230514 move pipe_buffer_handle definition to top of file, use it in pipe_region 2007-08-11 16:59:54 +01:00
Brian
0b13336540 remove #include mtypes.h 2007-08-11 16:59:15 +01:00
Keith Whitwell
91c2216165 Rename intel_buffers.[ch] to intel_swapbuffers.[ch] 2007-08-11 14:19:48 +01:00
Keith Whitwell
8c4409690d Fix some build failures. Move intelScreenContext to intel_context.c 2007-08-11 14:01:37 +01:00
Keith Whitwell
a0e48b1ff9 Pull in improved debug from master 2007-08-11 14:00:19 +01:00
Keith Whitwell
2eb839ce1d make it easier to compare debug code with non-pipe version 2007-08-11 13:06:24 +01:00
keithw
eada74dc54 add intel_lock.c to build 2007-08-11 00:20:30 +01:00
keithw
37863c3c42 remove intel_ioctl.c 2007-08-11 00:18:47 +01:00
keithw
4bc932ab29 move batch ioctl to intel_batchbuffer.c 2007-08-11 00:16:36 +01:00
keithw
20995b74c9 remove unused irq functions 2007-08-11 00:13:40 +01:00
keithw
acff996c44 move locking to new file 2007-08-11 00:10:30 +01:00
keithw
ecea02fd70 remove intelGetString() 2007-08-11 00:09:21 +01:00
Keith Whitwell
39407fd854 Move string functions to state_tracker, add queries to pipe, winsys. 2007-08-10 16:44:07 +01:00
Brian
1c8bcc733d Y invert, clean-up 2007-08-10 16:25:21 -06:00
Brian
717831ea71 invert Y for scissor 2007-08-10 16:24:55 -06:00
keithw
fb4ff8a2a8 use winsys supported_formats() query 2007-08-10 16:12:09 +01:00
keithw
5b30113236 add missing printf 2007-08-10 16:08:45 +01:00
keithw
03a9994280 move dri_bo() to a header file 2007-08-10 16:04:17 +01:00
Brian
8fbd81b4ed added pipe->max_texture_size() query, use it in st_drawpixels() 2007-08-10 15:48:54 -06:00
Keith Whitwell
47fc2c4349 Lift common winsys functions into pipe's new p_winsys. 2007-08-10 15:35:48 +01:00
Brian
12e3bb1a65 fix image orientation 2007-08-10 15:29:56 -06:00
Brian
04ee3cecdf readpixels handles any format/type/packing/transfer ops now 2007-08-10 15:29:41 -06:00
Brian
bc4aa83794 setup sampler state, computed wincoords with pixel zoom factors 2007-08-10 13:30:22 -06:00
Brian
6ccdd5bb15 don't hardcode cpp 2007-08-10 13:11:47 -06:00
Brian
ce02b16dac added st_sizeof_format() 2007-08-10 13:11:31 -06:00
Brian
34d535ad2c glRead/DrawPixels test 2007-08-10 13:06:07 -06:00
Brian
e51aa57293 basic texture-based glDrawPixels path works 2007-08-10 13:03:57 -06:00
Brian
9cf9aa1ea2 use st_mesa_format_to_pipe_format() 2007-08-10 13:03:57 -06:00
Brian
24e510ea37 added st_mesa_format_to_pipe_format() 2007-08-10 13:03:57 -06:00
Brian
da9178c730 alignment/pitch/width clean-ups 2007-08-10 13:03:57 -06:00
Brian
48f853f73f minor clean-ups 2007-08-10 13:03:57 -06:00
Keith Whitwell
5c2c056000 Handle glFlush/glFinish through the state tracker. 2007-08-10 12:58:26 +01:00
Brian
9ac1a8d416 pipe->region_alloc() now takes width instead of pitch, plus a flags param 2007-08-10 12:14:25 -06:00
Brian
519aacef03 fix asst glitches 2007-08-10 12:14:25 -06:00
michal
80e8538a5d Add SGT/LT/GE/LE/EQ/NE opcodes for ps/vs_2_x. 2007-08-10 11:54:39 +01:00
michal
9cad4dde97 Support predicates.
Predicates, as per D3D9 spec, are a complete subset of NVIDIA's
condition codes. However, due to its broad support in non-NVIDIA
hardware, it is being exposed in TGSI to ease hw driver development.
Two decomposition functions are expected in the future.
1. GetRidOfPredicates() - predicates are implemented with condition
codes.
2. There is no second function, it's just this pesky VI that does not
allow me to move with arrow keys and so I cannot edit previous paragraphs.
2007-08-10 11:45:56 +01:00
Brian
900b0807b8 added st_cb_readpixels.c 2007-08-10 11:37:41 -06:00