OSDN Git Service

android-x86/external-mesa.git
16 years agoadded assertion to check that texture width is non-zero
Brian [Mon, 13 Aug 2007 22:18:32 +0000 (16:18 -0600)]
added assertion to check that texture width is non-zero

16 years agofix up some render-to-texture code ... almost there
Brian [Mon, 13 Aug 2007 22:18:03 +0000 (16:18 -0600)]
fix up some render-to-texture code ... almost there

16 years agoadded an assertion
Brian [Mon, 13 Aug 2007 22:16:42 +0000 (16:16 -0600)]
added an assertion

16 years agoMissing files
Keith Whitwell [Mon, 13 Aug 2007 15:24:24 +0000 (16:24 +0100)]
Missing files

16 years agoStart breaking the #include dependencies between pipe drivers and mesa.
Keith Whitwell [Mon, 13 Aug 2007 15:07:11 +0000 (16:07 +0100)]
Start breaking the #include dependencies between pipe drivers and mesa.

Pipe drivers shouldn't really know much about mesa and certainly shouldn't
be #including files from src/mesa/main and the like.

I've also (in i915simple especially) moved over from GL types to
more conventional int/unsigned usage.  This probably isn't really the
ultimate desired set of types to use - possibly C99 would be better.  It
may even be that a subset of the GL types is preferable.

16 years agocheck if we have a zbuf before enabling depth_test stage
Brian [Mon, 13 Aug 2007 21:21:01 +0000 (15:21 -0600)]
check if we have a zbuf before enabling depth_test stage

16 years agofix some issues with texture/mipmap_tree state tracking
Brian [Mon, 13 Aug 2007 21:20:08 +0000 (15:20 -0600)]
fix some issues with texture/mipmap_tree state tracking

16 years agowith Y=0=top, front/back determination is negated
Brian [Mon, 13 Aug 2007 21:02:50 +0000 (15:02 -0600)]
with Y=0=top, front/back determination is negated

16 years agocheck for ctx==NULL in st_renderbuffer_delete()
Brian [Mon, 13 Aug 2007 20:53:27 +0000 (14:53 -0600)]
check for ctx==NULL in st_renderbuffer_delete()

16 years agoDraw white square in lower-left corner to test orientation
Brian [Mon, 13 Aug 2007 19:57:31 +0000 (13:57 -0600)]
Draw white square in lower-left corner to test orientation

16 years agofill in the get_tile() function so ReadPixels can work
Brian [Mon, 13 Aug 2007 19:56:54 +0000 (13:56 -0600)]
fill in the get_tile() function so ReadPixels can work

16 years agoflush pipe before reading image
Brian [Mon, 13 Aug 2007 19:56:30 +0000 (13:56 -0600)]
flush pipe before reading image

16 years agoChange/fix surface allocation functions.
Brian [Sat, 11 Aug 2007 20:21:12 +0000 (21:21 +0100)]
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)

16 years agomt->pitch must be at least 16 because of 64-byte alignment in sp_region.c (fix that...
Brian [Sat, 11 Aug 2007 20:19:04 +0000 (21:19 +0100)]
mt->pitch must be at least 16 because of 64-byte alignment in sp_region.c (fix that someday)

16 years agodo clipping in get_tile()
Brian [Sat, 11 Aug 2007 20:18:33 +0000 (21:18 +0100)]
do clipping in get_tile()

16 years agoadded Bitmap() stub, call st_validate_state() in DrawPixels
Brian [Sat, 11 Aug 2007 19:03:24 +0000 (20:03 +0100)]
added Bitmap() stub, call st_validate_state() in DrawPixels

16 years agoremove some temp pipe hacks
Brian [Sat, 11 Aug 2007 18:57:50 +0000 (19:57 +0100)]
remove some temp pipe hacks

16 years agoadded st_cb_queryobj.c
Brian [Sat, 11 Aug 2007 18:57:37 +0000 (19:57 +0100)]
added st_cb_queryobj.c

16 years agoBegin/EndQuery functions
Brian [Sat, 11 Aug 2007 18:56:30 +0000 (19:56 +0100)]
Begin/EndQuery functions

16 years agorepair breakage from recent pipe_winsys re-org
Brian [Sat, 11 Aug 2007 16:04:12 +0000 (17:04 +0100)]
repair breakage from recent pipe_winsys re-org

16 years agofix invalid usage of buffer_unreference()
Brian [Sat, 11 Aug 2007 16:03:51 +0000 (17:03 +0100)]
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.

16 years agonotes/asserts for get/put_tile()
Brian [Sat, 11 Aug 2007 16:00:56 +0000 (17:00 +0100)]
notes/asserts for get/put_tile()

16 years agomove pipe_buffer_handle definition to top of file, use it in pipe_region
Brian [Sat, 11 Aug 2007 15:59:54 +0000 (16:59 +0100)]
move pipe_buffer_handle definition to top of file, use it in pipe_region

16 years agoremove #include mtypes.h
Brian [Sat, 11 Aug 2007 15:59:15 +0000 (16:59 +0100)]
remove #include mtypes.h

16 years agoRename intel_buffers.[ch] to intel_swapbuffers.[ch]
Keith Whitwell [Sat, 11 Aug 2007 13:19:48 +0000 (14:19 +0100)]
Rename intel_buffers.[ch] to intel_swapbuffers.[ch]

16 years agoFix some build failures. Move intelScreenContext to intel_context.c
Keith Whitwell [Sat, 11 Aug 2007 13:01:37 +0000 (14:01 +0100)]
Fix some build failures.  Move intelScreenContext to intel_context.c

16 years agoPull in improved debug from master
Keith Whitwell [Sat, 11 Aug 2007 13:00:19 +0000 (14:00 +0100)]
Pull in improved debug from master

16 years agomake it easier to compare debug code with non-pipe version
Keith Whitwell [Sat, 11 Aug 2007 12:06:24 +0000 (13:06 +0100)]
make it easier to compare debug code with non-pipe version

16 years agoadd intel_lock.c to build
keithw [Fri, 10 Aug 2007 23:20:30 +0000 (00:20 +0100)]
add intel_lock.c to build

16 years agoremove intel_ioctl.c
keithw [Fri, 10 Aug 2007 23:18:47 +0000 (00:18 +0100)]
remove intel_ioctl.c

16 years agomove batch ioctl to intel_batchbuffer.c
keithw [Fri, 10 Aug 2007 23:16:36 +0000 (00:16 +0100)]
move batch ioctl to intel_batchbuffer.c

16 years agoremove unused irq functions
keithw [Fri, 10 Aug 2007 23:13:40 +0000 (00:13 +0100)]
remove unused irq functions

16 years agomove locking to new file
keithw [Fri, 10 Aug 2007 23:10:30 +0000 (00:10 +0100)]
move locking to new file

16 years agoremove intelGetString()
keithw [Fri, 10 Aug 2007 23:09:21 +0000 (00:09 +0100)]
remove intelGetString()

16 years agoMove string functions to state_tracker, add queries to pipe, winsys.
Keith Whitwell [Fri, 10 Aug 2007 15:42:26 +0000 (16:42 +0100)]
Move string functions to state_tracker, add queries to pipe, winsys.

16 years agoY invert, clean-up
Brian [Fri, 10 Aug 2007 22:25:21 +0000 (16:25 -0600)]
Y invert, clean-up

16 years agoinvert Y for scissor
Brian [Fri, 10 Aug 2007 22:24:55 +0000 (16:24 -0600)]
invert Y for scissor

16 years agouse winsys supported_formats() query
keithw [Fri, 10 Aug 2007 15:12:09 +0000 (16:12 +0100)]
use winsys supported_formats() query

16 years agoadd missing printf
keithw [Fri, 10 Aug 2007 15:08:45 +0000 (16:08 +0100)]
add missing printf

16 years agomove dri_bo() to a header file
keithw [Fri, 10 Aug 2007 15:03:38 +0000 (16:03 +0100)]
move dri_bo() to a header file

16 years agoadded pipe->max_texture_size() query, use it in st_drawpixels()
Brian [Fri, 10 Aug 2007 21:47:45 +0000 (15:47 -0600)]
added pipe->max_texture_size() query, use it in st_drawpixels()

16 years agoLift common winsys functions into pipe's new p_winsys.
Keith Whitwell [Fri, 10 Aug 2007 14:31:26 +0000 (15:31 +0100)]
Lift common winsys functions into pipe's new p_winsys.

16 years agofix image orientation
Brian [Fri, 10 Aug 2007 21:29:56 +0000 (15:29 -0600)]
fix image orientation

16 years agoreadpixels handles any format/type/packing/transfer ops now
Brian [Fri, 10 Aug 2007 21:29:41 +0000 (15:29 -0600)]
readpixels handles any format/type/packing/transfer ops now

16 years agosetup sampler state, computed wincoords with pixel zoom factors
Brian [Fri, 10 Aug 2007 19:30:22 +0000 (13:30 -0600)]
setup sampler state, computed wincoords with pixel zoom factors

16 years agodon't hardcode cpp
Brian [Fri, 10 Aug 2007 19:11:47 +0000 (13:11 -0600)]
don't hardcode cpp

16 years agoadded st_sizeof_format()
Brian [Fri, 10 Aug 2007 19:11:31 +0000 (13:11 -0600)]
added st_sizeof_format()

16 years agoglRead/DrawPixels test
Brian [Fri, 10 Aug 2007 19:06:07 +0000 (13:06 -0600)]
glRead/DrawPixels test

16 years agobasic texture-based glDrawPixels path works
Brian [Fri, 10 Aug 2007 19:03:13 +0000 (13:03 -0600)]
basic texture-based glDrawPixels path works

16 years agouse st_mesa_format_to_pipe_format()
Brian [Fri, 10 Aug 2007 19:02:51 +0000 (13:02 -0600)]
use st_mesa_format_to_pipe_format()

16 years agoadded st_mesa_format_to_pipe_format()
Brian [Fri, 10 Aug 2007 19:02:25 +0000 (13:02 -0600)]
added st_mesa_format_to_pipe_format()

16 years agoalignment/pitch/width clean-ups
Brian [Fri, 10 Aug 2007 18:37:20 +0000 (12:37 -0600)]
alignment/pitch/width clean-ups

16 years agominor clean-ups
Brian [Fri, 10 Aug 2007 18:24:38 +0000 (12:24 -0600)]
minor clean-ups

16 years agoHandle glFlush/glFinish through the state tracker.
Keith Whitwell [Fri, 10 Aug 2007 11:57:14 +0000 (12:57 +0100)]
Handle glFlush/glFinish through the state tracker.

16 years agopipe->region_alloc() now takes width instead of pitch, plus a flags param
Brian [Fri, 10 Aug 2007 18:13:48 +0000 (12:13 -0600)]
pipe->region_alloc() now takes width instead of pitch, plus a flags param

16 years agofix asst glitches
Brian [Fri, 10 Aug 2007 17:43:04 +0000 (11:43 -0600)]
fix asst glitches

16 years agoAdd SGT/LT/GE/LE/EQ/NE opcodes for ps/vs_2_x.
michal [Fri, 10 Aug 2007 10:54:39 +0000 (11:54 +0100)]
Add SGT/LT/GE/LE/EQ/NE opcodes for ps/vs_2_x.

16 years agoSupport predicates.
michal [Fri, 10 Aug 2007 10:45:06 +0000 (11:45 +0100)]
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.

16 years agoadded st_cb_readpixels.c
Brian [Fri, 10 Aug 2007 17:37:41 +0000 (11:37 -0600)]
added st_cb_readpixels.c

16 years agouse st_cb_readpixels.c
Brian [Fri, 10 Aug 2007 17:37:21 +0000 (11:37 -0600)]
use st_cb_readpixels.c

16 years agoglReadPixels
Brian [Fri, 10 Aug 2007 17:37:05 +0000 (11:37 -0600)]
glReadPixels

16 years agoadd missing break stmt
Brian [Fri, 10 Aug 2007 17:36:23 +0000 (11:36 -0600)]
add missing break stmt

16 years agomore render to texture work
Brian [Fri, 10 Aug 2007 17:35:57 +0000 (11:35 -0600)]
more render to texture work

16 years agosketch out some render-to-texture code
Brian [Fri, 10 Aug 2007 17:17:26 +0000 (11:17 -0600)]
sketch out some render-to-texture code

16 years agoremove some temporary hacks
Brian [Fri, 10 Aug 2007 17:16:53 +0000 (11:16 -0600)]
remove some temporary hacks

16 years agoadded pipe_surface_unreference()
Brian [Fri, 10 Aug 2007 17:15:33 +0000 (11:15 -0600)]
added pipe_surface_unreference()

16 years agoinclude surface.offset in address calculations
Brian [Fri, 10 Aug 2007 17:15:15 +0000 (11:15 -0600)]
include surface.offset in address calculations

16 years agoClean up / sanitize debugging
Keith Whitwell [Fri, 10 Aug 2007 09:37:20 +0000 (10:37 +0100)]
Clean up / sanitize debugging

16 years agoMissing files
Keith Whitwell [Fri, 10 Aug 2007 09:23:24 +0000 (10:23 +0100)]
Missing files

16 years agoRemove dead include line
Keith Whitwell [Fri, 10 Aug 2007 09:21:42 +0000 (10:21 +0100)]
Remove dead include line

16 years agoFix merge issue
Keith Whitwell [Fri, 10 Aug 2007 09:20:35 +0000 (10:20 +0100)]
Fix merge issue

16 years agoGive softpipe a native texture layout of its own.
Keith Whitwell [Fri, 10 Aug 2007 09:15:23 +0000 (10:15 +0100)]
Give softpipe a native texture layout of its own.

Basically the same as the 945's for now.

16 years agoAdd printf handlers, pass pci id and move texlayout code to driver.
Keith Whitwell [Fri, 10 Aug 2007 09:02:34 +0000 (10:02 +0100)]
Add printf handlers, pass pci id and move texlayout code to driver.

16 years agoPass pci_id to i915_create()
Keith Whitwell [Fri, 10 Aug 2007 09:01:15 +0000 (10:01 +0100)]
Pass pci_id to i915_create()

16 years agoAdd a printf method to winsys and use for all debugging.
Keith Whitwell [Fri, 10 Aug 2007 08:58:17 +0000 (09:58 +0100)]
Add a printf method to winsys and use for all debugging.

16 years agoAdd a printf method to winsys. Not currently used.
Keith Whitwell [Fri, 10 Aug 2007 08:55:40 +0000 (09:55 +0100)]
Add a printf method to winsys. Not currently used.

16 years agoobsolete files
Brian [Fri, 10 Aug 2007 16:09:52 +0000 (10:09 -0600)]
obsolete files

16 years agono longer need intel_surface.c
Brian [Fri, 10 Aug 2007 16:09:29 +0000 (10:09 -0600)]
no longer need intel_surface.c

16 years agomove intel_supported_formats() into intel_context.c
Brian [Fri, 10 Aug 2007 16:09:12 +0000 (10:09 -0600)]
move intel_supported_formats() into intel_context.c

16 years agowe can now just rely on softpipe for surface creation, quad_read/write, etc
Brian [Fri, 10 Aug 2007 16:06:57 +0000 (10:06 -0600)]
we can now just rely on softpipe for surface creation, quad_read/write, etc

16 years agoflesh out w/ more formats, y=0=top convention
Brian [Fri, 10 Aug 2007 16:06:00 +0000 (10:06 -0600)]
flesh out w/ more formats, y=0=top convention

16 years agoreturn (softpipe) in GL_RENDERER string - temporarily
Brian [Fri, 10 Aug 2007 07:38:31 +0000 (08:38 +0100)]
return (softpipe) in GL_RENDERER string - temporarily

16 years agorename st_cb_teximage.h st_format.h
Brian [Fri, 10 Aug 2007 07:37:15 +0000 (08:37 +0100)]
rename st_cb_teximage.h st_format.h

16 years agoRename (file contains surface format-related functions)
Brian [Fri, 10 Aug 2007 07:35:13 +0000 (08:35 +0100)]
Rename (file contains surface format-related functions)

16 years agocode movement
Brian [Fri, 10 Aug 2007 07:34:18 +0000 (08:34 +0100)]
code movement

16 years agoinvert Y axis
Brian [Fri, 10 Aug 2007 07:33:43 +0000 (08:33 +0100)]
invert Y axis

16 years agochange triangle orientation, fix exit()
Brian [Fri, 10 Aug 2007 07:33:09 +0000 (08:33 +0100)]
change triangle orientation, fix exit()

16 years agoasst changes to get softpipe rendering again (no zbuf support for now)
Brian [Thu, 9 Aug 2007 21:56:50 +0000 (22:56 +0100)]
asst changes to get softpipe rendering again (no zbuf support for now)

16 years agoinit strb->Base.DataType appropriately, clean-ups
Brian [Thu, 9 Aug 2007 21:56:21 +0000 (22:56 +0100)]
init strb->Base.DataType appropriately, clean-ups

16 years agoexport softpipe_init_surface_funcs()
Brian [Thu, 9 Aug 2007 21:55:28 +0000 (22:55 +0100)]
export softpipe_init_surface_funcs()

16 years agoadded null ptr checks
Brian [Thu, 9 Aug 2007 21:55:15 +0000 (22:55 +0100)]
added null ptr checks

16 years agoSplit texfilter enums to match common hardware usage.
Keith Whitwell [Thu, 9 Aug 2007 18:09:19 +0000 (19:09 +0100)]
Split texfilter enums to match common hardware usage.

16 years agosilence warning
Keith Whitwell [Thu, 9 Aug 2007 18:08:52 +0000 (19:08 +0100)]
silence warning

16 years agosilence warning
Keith Whitwell [Thu, 9 Aug 2007 18:08:23 +0000 (19:08 +0100)]
silence warning

16 years agomore work toward texture-based glDrawPixels
Brian [Fri, 10 Aug 2007 01:04:50 +0000 (19:04 -0600)]
more work toward texture-based glDrawPixels

16 years agocomments
Brian [Fri, 10 Aug 2007 01:04:28 +0000 (19:04 -0600)]
comments

16 years agomove viewport Y inversion to state tracker
Brian [Fri, 10 Aug 2007 00:24:37 +0000 (18:24 -0600)]
move viewport Y inversion to state tracker

16 years agoAdd more i915 state packets.
Keith Whitwell [Thu, 9 Aug 2007 17:07:42 +0000 (18:07 +0100)]
Add more i915 state packets.

These correspond to the dynamic indirect state, though they are
currently just pushed straight to the batch buffer.

16 years agoRemove unused file
Keith Whitwell [Thu, 9 Aug 2007 16:40:18 +0000 (17:40 +0100)]
Remove unused file

16 years agoinvert Y axis with the viewport transformation to put things right side up
Brian [Thu, 9 Aug 2007 23:59:13 +0000 (17:59 -0600)]
invert Y axis with the viewport transformation to put things right side up