mesa.git
15 years agonv50: fix blend colour
Ben Skeggs [Mon, 16 Jun 2008 12:06:54 +0000 (22:06 +1000)]
nv50: fix blend colour

15 years agonv50: use stateobjs for sampler/image_control uploads
Ben Skeggs [Mon, 16 Jun 2008 12:02:02 +0000 (22:02 +1000)]
nv50: use stateobjs for sampler/image_control uploads

15 years agonv50: hack of a TEX opcode
Ben Skeggs [Mon, 16 Jun 2008 08:56:39 +0000 (18:56 +1000)]
nv50: hack of a TEX opcode

15 years agonv50: hacks for stuff I don't really get yet
Ben Skeggs [Mon, 16 Jun 2008 08:03:29 +0000 (18:03 +1000)]
nv50: hacks for stuff I don't really get yet

15 years agonv50: abuse constbuf upload for program upload
Ben Skeggs [Mon, 16 Jun 2008 06:29:40 +0000 (16:29 +1000)]
nv50: abuse constbuf upload for program upload

15 years agonv50: a couple more bits'n'pieces
Ben Skeggs [Mon, 16 Jun 2008 02:55:53 +0000 (12:55 +1000)]
nv50: a couple more bits'n'pieces

15 years agonv50: disable inline IMMD for now, IMMD+pred == BANG!
Ben Skeggs [Sun, 15 Jun 2008 05:53:22 +0000 (15:53 +1000)]
nv50: disable inline IMMD for now, IMMD+pred == BANG!

fixes progs/fp/lit.txt

15 years agonv50: simplify interp crap a bit...
Ben Skeggs [Sun, 15 Jun 2008 05:49:25 +0000 (15:49 +1000)]
nv50: simplify interp crap a bit...

hopefully there wasn't a good reason I went the route I did.. can't recall..

15 years agonv50: do tsc/tic upload + stub out shader TEX stuff
Ben Skeggs [Fri, 13 Jun 2008 02:09:46 +0000 (12:09 +1000)]
nv50: do tsc/tic upload + stub out shader TEX stuff

15 years agonv50: disable ztest for now - it doesn't work still
Ben Skeggs [Fri, 13 Jun 2008 01:50:13 +0000 (11:50 +1000)]
nv50: disable ztest for now - it doesn't work still

15 years agonv50: flag to indicate to winsys we want a surface for use as a zeta buffer
Ben Skeggs [Fri, 13 Jun 2008 00:58:27 +0000 (10:58 +1000)]
nv50: flag to indicate to winsys we want a surface for use as a zeta buffer

NVIDIA love to make life difficult.. we need different flags in PTEs for
zeta.. yay.. not.

15 years agonv50: comment on a so-far unseen bug
Ben Skeggs [Thu, 12 Jun 2008 13:49:26 +0000 (23:49 +1000)]
nv50: comment on a so-far unseen bug

15 years agonv50: another vbo format
Ben Skeggs [Thu, 12 Jun 2008 04:47:17 +0000 (14:47 +1000)]
nv50: another vbo format

15 years agonv50: fix blend cso
Ben Skeggs [Thu, 12 Jun 2008 04:40:20 +0000 (14:40 +1000)]
nv50: fix blend cso

15 years agonv50: valgrind complaint
Ben Skeggs [Thu, 12 Jun 2008 04:21:28 +0000 (14:21 +1000)]
nv50: valgrind complaint

15 years agonv50: draw_elements() - inline only for the moment
Ben Skeggs [Thu, 12 Jun 2008 04:15:38 +0000 (14:15 +1000)]
nv50: draw_elements() - inline only for the moment

15 years agonv50: support a couple more common VBO formats
Ben Skeggs [Thu, 12 Jun 2008 03:59:51 +0000 (13:59 +1000)]
nv50: support a couple more common VBO formats

15 years agonv50: remove some cruft, don't upload program unless really needed
Ben Skeggs [Thu, 12 Jun 2008 03:50:56 +0000 (13:50 +1000)]
nv50: remove some cruft, don't upload program unless really needed

15 years agonv50: more efficient const upload + fixes (fp/* works now!)
Ben Skeggs [Thu, 12 Jun 2008 03:11:41 +0000 (13:11 +1000)]
nv50: more efficient const upload + fixes (fp/* works now!)

15 years agonv50: use constbuf segment 0 for everything - I can't make the others work..
Ben Skeggs [Thu, 12 Jun 2008 02:39:35 +0000 (12:39 +1000)]
nv50: use constbuf segment 0 for everything - I can't make the others work..

15 years agonv50: allow relocating a shader's constants at upload time
Ben Skeggs [Thu, 12 Jun 2008 02:26:43 +0000 (12:26 +1000)]
nv50: allow relocating a shader's constants at upload time

15 years agonv50: carry instructions around in nv50_program_exec, not a flat array
Ben Skeggs [Thu, 12 Jun 2008 02:16:43 +0000 (12:16 +1000)]
nv50: carry instructions around in nv50_program_exec, not a flat array

15 years agonv50: get vp working again, fp is broken regardless somehow..
Ben Skeggs [Wed, 11 Jun 2008 05:28:41 +0000 (15:28 +1000)]
nv50: get vp working again, fp is broken regardless somehow..

g8x sucks :)

15 years agonv50: rename nv50_state.h to nv50_program.h
Ben Skeggs [Wed, 11 Jun 2008 04:59:19 +0000 (14:59 +1000)]
nv50: rename nv50_state.h to nv50_program.h

15 years agonv50: move magics take 2
Ben Skeggs [Wed, 11 Jun 2008 03:24:32 +0000 (13:24 +1000)]
nv50: move magics take 2

15 years agoRevert "nv50: move some magics"
Ben Skeggs [Wed, 11 Jun 2008 03:15:23 +0000 (13:15 +1000)]
Revert "nv50: move some magics"

This reverts commit 0a38de30429d3075fc6dfc9ff3729c5ca11f0c2f.

15 years agonv50: move some magics
Ben Skeggs [Wed, 11 Jun 2008 03:00:20 +0000 (13:00 +1000)]
nv50: move some magics

15 years agonv50: various fixes + SCS
Ben Skeggs [Mon, 9 Jun 2008 09:50:17 +0000 (19:50 +1000)]
nv50: various fixes + SCS

15 years agonv50: LRP
Ben Skeggs [Mon, 9 Jun 2008 08:01:03 +0000 (18:01 +1000)]
nv50: LRP

15 years agonv50: quick hack so progs/fp/fp-tri works for the moment
Ben Skeggs [Mon, 9 Jun 2008 07:36:22 +0000 (17:36 +1000)]
nv50: quick hack so progs/fp/fp-tri works for the moment

15 years agonv50: fix SGE/SLT when sources need swapping
Ben Skeggs [Mon, 9 Jun 2008 06:41:08 +0000 (16:41 +1000)]
nv50: fix SGE/SLT when sources need swapping

15 years agonv50: support the other TGSI_UTIL_SIGN modes
Ben Skeggs [Mon, 9 Jun 2008 06:35:07 +0000 (16:35 +1000)]
nv50: support the other TGSI_UTIL_SIGN modes

15 years agonv50: note some things discovered during renouveau session
Ben Skeggs [Mon, 9 Jun 2008 06:26:51 +0000 (16:26 +1000)]
nv50: note some things discovered during renouveau session

15 years agonv50: use emit_flop() instead of building RCP manually on interp
Ben Skeggs [Mon, 9 Jun 2008 03:31:42 +0000 (13:31 +1000)]
nv50: use emit_flop() instead of building RCP manually on interp

15 years agonv50: remove NV50_PROG_{VERTEX,FRAGMENT}
Ben Skeggs [Mon, 9 Jun 2008 03:09:55 +0000 (13:09 +1000)]
nv50: remove NV50_PROG_{VERTEX,FRAGMENT}

15 years agonv50: delayed write of fragprog result regs until end of program
Ben Skeggs [Mon, 9 Jun 2008 03:07:38 +0000 (13:07 +1000)]
nv50: delayed write of fragprog result regs until end of program

15 years agonv50: fix src1 & src2 == const
Ben Skeggs [Sun, 8 Jun 2008 05:51:54 +0000 (15:51 +1000)]
nv50: fix src1 & src2 == const

15 years agonv50: note a critical bug
Ben Skeggs [Sun, 8 Jun 2008 04:12:01 +0000 (14:12 +1000)]
nv50: note a critical bug

15 years agonv50: hehe, damage from tex-surfaces.. surface_fill() reenabled now :)
Ben Skeggs [Sun, 8 Jun 2008 02:27:36 +0000 (12:27 +1000)]
nv50: hehe, damage from tex-surfaces.. surface_fill() reenabled now :)

15 years agonv50: obey writemask in a couple of places
Ben Skeggs [Sun, 8 Jun 2008 01:23:06 +0000 (11:23 +1000)]
nv50: obey writemask in a couple of places

15 years agonv50: LIT - sort-of
Ben Skeggs [Sat, 7 Jun 2008 09:54:04 +0000 (19:54 +1000)]
nv50: LIT - sort-of

*somehow* we have the exact same bug here as on nv4x, the difference being
on nv4x the hw actually has a LIT opcode.. NVIDIA doesn't have the bug on
either arch FWIW.

15 years agonv50: obey per-source abs (TGSI_UTIL_SIGN_CLEAR)
Ben Skeggs [Sat, 7 Jun 2008 07:42:00 +0000 (17:42 +1000)]
nv50: obey per-source abs (TGSI_UTIL_SIGN_CLEAR)

15 years agonv50: create emit_pow() - emit_lit() will need to use it
Ben Skeggs [Sat, 7 Jun 2008 07:36:10 +0000 (17:36 +1000)]
nv50: create emit_pow() - emit_lit() will need to use it

15 years agonv50: oops, copy+pasto
Ben Skeggs [Sat, 7 Jun 2008 06:51:07 +0000 (16:51 +1000)]
nv50: oops, copy+pasto

15 years agonv50: POW!
Ben Skeggs [Sat, 7 Jun 2008 06:08:36 +0000 (16:08 +1000)]
nv50: POW!

15 years agonv50: fixes + untested _SAT modifier
Ben Skeggs [Sat, 7 Jun 2008 06:01:06 +0000 (16:01 +1000)]
nv50: fixes + untested _SAT modifier

15 years agonv50: handle 0/1 SWZ
Ben Skeggs [Sat, 7 Jun 2008 05:21:05 +0000 (15:21 +1000)]
nv50: handle 0/1 SWZ

15 years agonv50: DST
Ben Skeggs [Sat, 7 Jun 2008 04:10:48 +0000 (14:10 +1000)]
nv50: DST

15 years agonv50: ABS
Ben Skeggs [Sat, 7 Jun 2008 03:01:58 +0000 (13:01 +1000)]
nv50: ABS

15 years agonv50: FLR/FRC
Ben Skeggs [Sat, 7 Jun 2008 02:55:06 +0000 (12:55 +1000)]
nv50: FLR/FRC

15 years agonv50: SGE/SLT
Ben Skeggs [Sat, 7 Jun 2008 01:41:47 +0000 (11:41 +1000)]
nv50: SGE/SLT

15 years agonv50: small cleanup
Ben Skeggs [Fri, 6 Jun 2008 03:57:59 +0000 (13:57 +1000)]
nv50: small cleanup

15 years agonv50: DPH, XPD, some TODOs
Ben Skeggs [Thu, 5 Jun 2008 13:48:23 +0000 (23:48 +1000)]
nv50: DPH, XPD, some TODOs

15 years agonv50: fix EX2.. somehow
Ben Skeggs [Thu, 5 Jun 2008 08:52:16 +0000 (18:52 +1000)]
nv50: fix EX2.. somehow

15 years agonv50: big fuckup, fix it
Ben Skeggs [Thu, 5 Jun 2008 08:39:00 +0000 (18:39 +1000)]
nv50: big fuckup, fix it

15 years agonv50: some fixes + MIN/MAX
Ben Skeggs [Wed, 4 Jun 2008 11:45:32 +0000 (21:45 +1000)]
nv50: some fixes + MIN/MAX

15 years agonv50: checkpoint: shader code now exceeds caps of "old" code
Ben Skeggs [Wed, 4 Jun 2008 11:23:14 +0000 (21:23 +1000)]
nv50: checkpoint: shader code now exceeds caps of "old" code

15 years agonv50: remove hardcoded fp stuff
Ben Skeggs [Tue, 3 Jun 2008 02:38:12 +0000 (12:38 +1000)]
nv50: remove hardcoded fp stuff

15 years agonv50: start using interpreter for fragprog too, not hardcoded passthrough
Ben Skeggs [Tue, 3 Jun 2008 02:37:29 +0000 (12:37 +1000)]
nv50: start using interpreter for fragprog too, not hardcoded passthrough

15 years agonv50: drop the majority of the old shader code, reimplement, only MOV so far.
Ben Skeggs [Mon, 2 Jun 2008 13:52:58 +0000 (23:52 +1000)]
nv50: drop the majority of the old shader code, reimplement, only MOV so far.

15 years agonv50: split code/data upload out, fp will use it later on
Ben Skeggs [Mon, 2 Jun 2008 03:01:09 +0000 (13:01 +1000)]
nv50: split code/data upload out, fp will use it later on

15 years agonv50: DPH
Ben Skeggs [Mon, 2 Jun 2008 02:12:16 +0000 (12:12 +1000)]
nv50: DPH

15 years agonv50: implement SUB
Ben Skeggs [Mon, 2 Jun 2008 02:08:06 +0000 (12:08 +1000)]
nv50: implement SUB

15 years agonv50: fucking horrible hack, I really hate G8x shaders..
Ben Skeggs [Sun, 1 Jun 2008 13:16:17 +0000 (23:16 +1000)]
nv50: fucking horrible hack, I really hate G8x shaders..

15 years agonv50: use "real" constbufs for shaders + tcb uploads
Ben Skeggs [Sun, 1 Jun 2008 13:10:31 +0000 (23:10 +1000)]
nv50: use "real" constbufs for shaders + tcb uploads

15 years agonv50: import current "state of the art" nv50 code
Ben Skeggs [Sun, 1 Jun 2008 12:41:40 +0000 (22:41 +1000)]
nv50: import current "state of the art" nv50 code

15 years agonouveau: adapt to cpp->pf_block changes
Ben Skeggs [Sun, 29 Jun 2008 03:26:04 +0000 (13:26 +1000)]
nouveau: adapt to cpp->pf_block changes

15 years agoRevert "mesa: Use the appropriate relocation."
Ben Skeggs [Sun, 29 Jun 2008 03:02:31 +0000 (13:02 +1000)]
Revert "mesa: Use the appropriate relocation."

This reverts commit cb09d1ef60dae3b3c44f1370fd2f726c7044bc17.

15 years agoMerge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1
Ben Skeggs [Sun, 29 Jun 2008 02:16:13 +0000 (12:16 +1000)]
Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1

15 years agomesa: added null ptr checks
Brian Paul [Sat, 28 Jun 2008 22:47:39 +0000 (16:47 -0600)]
mesa: added null ptr checks

15 years agos/GL_INVALID_VALUE/GL_INVALID_OPERATION/ in _mesa_get_uniformfv()
Brian Paul [Sat, 28 Jun 2008 22:47:22 +0000 (16:47 -0600)]
s/GL_INVALID_VALUE/GL_INVALID_OPERATION/ in _mesa_get_uniformfv()

15 years agomesa: check FEATURE_point_size_array
Brian Paul [Sat, 28 Jun 2008 22:15:03 +0000 (16:15 -0600)]
mesa: check FEATURE_point_size_array

15 years agoegl: set config's EGL_CONFORMANT, EGL_RENDERABLE_TYPE, EGL_SURFACE_TYPE attributes
Brian Paul [Sat, 28 Jun 2008 22:04:01 +0000 (16:04 -0600)]
egl: set config's EGL_CONFORMANT, EGL_RENDERABLE_TYPE, EGL_SURFACE_TYPE attributes

15 years agoegl: fix default value of EGL_SURFACE_TYPE, added some sanity check assertions
Brian Paul [Sat, 28 Jun 2008 22:03:28 +0000 (16:03 -0600)]
egl: fix default value of EGL_SURFACE_TYPE, added some sanity check assertions

15 years agoegl: WinCE doesn't have sys/types.h
José Fonseca [Sat, 28 Jun 2008 11:40:44 +0000 (20:40 +0900)]
egl: WinCE doesn't have sys/types.h

15 years agoegl: helps if the stride is right
Zack Rusin [Fri, 27 Jun 2008 20:47:22 +0000 (16:47 -0400)]
egl: helps if the stride is right

15 years agoeh, we need a buildbot... fix the compilation
Zack Rusin [Fri, 27 Jun 2008 19:56:09 +0000 (15:56 -0400)]
eh, we need a buildbot... fix the compilation

15 years agogallium: handle msaa
Roland Scheidegger [Fri, 27 Jun 2008 14:02:43 +0000 (16:02 +0200)]
gallium: handle msaa

15 years agoegl: These changes allow an eglBindAPI(EGL_OPENGL_ES_API) to succeed, and to work...
Robert Ellison [Thu, 26 Jun 2008 14:55:00 +0000 (08:55 -0600)]
egl: These changes allow an eglBindAPI(EGL_OPENGL_ES_API) to succeed, and to work correctly with GLES1 and GLES2.

- egl_xdri.c just sets the EGL_OPENGL_ES_BIT as well as the
  EGL_OPENGL_BIT in ClientAPIsMask

- eglconfig.c allows the renderable type to include EGL_OPENGL_ES2_BIT
  as well as EGL_OPENGL_ES_BIT.

- egl_xlib.c sets the EGL_NATIVE_RENDERABLE attribute to EGL_FALSE for
  all softpipe configurations.  (Otherwise, an eglChooseConfig() that
  looks for particular values of EGL_NATIVE_RENDERABLE will fail.)

15 years agoegl: Windows updates to the platform.h files
Jonathan White [Fri, 27 Jun 2008 13:13:30 +0000 (07:13 -0600)]
egl: Windows updates to the platform.h files

15 years agoi915: Fix the last of the stride/pitch changes
Jakob Bornecrantz [Fri, 27 Jun 2008 12:16:42 +0000 (14:16 +0200)]
i915: Fix the last of the stride/pitch changes

15 years agomesa: Replace void * arithmetic.
José Fonseca [Fri, 27 Jun 2008 11:56:49 +0000 (20:56 +0900)]
mesa: Replace void * arithmetic.

15 years agogdi: Update for cpp removal.
José Fonseca [Fri, 27 Jun 2008 11:56:29 +0000 (20:56 +0900)]
gdi: Update for cpp removal.

15 years agocell: Update for cpp removal.
José Fonseca [Fri, 27 Jun 2008 11:10:04 +0000 (20:10 +0900)]
cell: Update for cpp removal.

Not tested -- just mymic the softpipe changes.

15 years agogallium: Drop pipe_texture->cpp and pipe_surface->cpp.
José Fonseca [Fri, 27 Jun 2008 10:37:56 +0000 (19:37 +0900)]
gallium: Drop pipe_texture->cpp and pipe_surface->cpp.

The chars-per-pixel concept falls apart with compressed and yuv images,
where more than one pixel are coded in a single data block.

15 years agoscons: Get x86-64<->x86 cross build of assembly files right.
José Fonseca [Fri, 27 Jun 2008 04:41:23 +0000 (13:41 +0900)]
scons: Get x86-64<->x86 cross build of assembly files right.

15 years agoscons: Fix i965/xlib build.
José Fonseca [Fri, 27 Jun 2008 04:01:37 +0000 (13:01 +0900)]
scons: Fix i965/xlib build.

15 years agoscons: Fix typo.
José Fonseca [Fri, 27 Jun 2008 03:35:18 +0000 (12:35 +0900)]
scons: Fix typo.

15 years agomesa: Use the appropriate relocation.
José Fonseca [Fri, 27 Jun 2008 03:34:57 +0000 (12:34 +0900)]
mesa: Use the appropriate relocation.

I don't fully understand this, but this matches the assembly code gcc
generates glapi.c and fixes following error on x86-64 with assembly:

  relocation R_X86_64_PC32 against `_gl_DispatchTSD' can not be used when making a shared object

15 years agogallium: Describe pixel block.
José Fonseca [Thu, 26 Jun 2008 14:39:13 +0000 (23:39 +0900)]
gallium: Describe pixel block.

Chars-per-pixel paradigm is not enough to represent compressed and yuv
pixel formats.

15 years agomesa: point size arrays
Brian Paul [Wed, 25 Jun 2008 14:45:14 +0000 (08:45 -0600)]
mesa: point size arrays

15 years agonv30: add context value
Patrice Mandin [Tue, 24 Jun 2008 19:04:37 +0000 (21:04 +0200)]
nv30: add context value

15 years agonouveau: major thinko
Ben Skeggs [Tue, 24 Jun 2008 18:08:17 +0000 (04:08 +1000)]
nouveau: major thinko

15 years agoMerge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1
Ben Skeggs [Tue, 24 Jun 2008 18:05:11 +0000 (04:05 +1000)]
Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1

15 years agogallium: remove some old dispatch code
Brian Paul [Tue, 24 Jun 2008 14:47:15 +0000 (08:47 -0600)]
gallium: remove some old dispatch code

15 years agogallium: remove bad assertion
Brian Paul [Tue, 24 Jun 2008 14:45:59 +0000 (08:45 -0600)]
gallium: remove bad assertion

15 years agogallium: Fix whole source being used in u_blit
Jakob Bornecrantz [Tue, 24 Jun 2008 14:06:59 +0000 (16:06 +0200)]
gallium: Fix whole source being used in u_blit

15 years agoFix CRLF line endings.
José Fonseca [Tue, 24 Jun 2008 13:26:19 +0000 (22:26 +0900)]
Fix CRLF line endings.

15 years agoAllow CRLF automatic conversion on MSVC project files.
José Fonseca [Tue, 24 Jun 2008 13:17:39 +0000 (22:17 +0900)]
Allow CRLF automatic conversion on MSVC project files.

MSVC doesn't really care, and it is frequently causing merge conflicts.

15 years agoi915: Create a texture and surface for shared frontbuffer
Jakob Bornecrantz [Tue, 24 Jun 2008 12:42:12 +0000 (14:42 +0200)]
i915: Create a texture and surface for shared frontbuffer