[Bug 20626] r200 texgen with glVertex4f(x, y, z, w) error

2009-03-17 Thread bugzilla-daemon
http://bugs.freedesktop.org/show_bug.cgi?id=20626





--- Comment #8 from raoxianhong raoxianh...@163.net  2009-03-16 23:00:52 PST 
---
(In reply to comment #7)
 (In reply to comment #6)
  The problem is solved by update mesa version. But I must DISABLE
  GL_TEXTURE_GEN_R and GL_TEXTURE_GEN_Q to do it. If GL_TEXTURE_GEN_R or
  GL_TEXTURE_GEN_Q is enabled, R200 looks line to object coord to normalized
  (x/w, y/w, z/w, 1.0), it is same when I use with ATI's driver under windows 
  XP,
  so it must be a limitation of R200. (and I get the same result on RADEON 
  X300,
  X1300)
 I'm not sure I follow you there. If you get the same results on X300 and X1300
 then possibly the results might be correct. Clearly if you disable
 GL_TEXTURE_GEN_R and GL_TEXTURE_GEN_Q results are expected to be different.
 In the example you gave, what coords do you get?
 The coords after texgen for your four vertices should be
 (1.0, 0.0, 2.0, 2.0)
 (1.0, 2.0, 2.0, 2.0)
 (0.5, 2.0, 2.0, 2.0)
 (0.25, 0.0, 1.0, 1.0)
 hence after the q divide (and ignoring the unused r coord)
 (0.5, 0.0)
 (0.5, 1.0)
 (0.25, 1.0)
 (0.25, 0.0)
 Is that different to what you get?
 Note that if you disable some of the texgen coords, the r200 _will_ produce
 bogus results in some cases, and I think it's generally a good idea to stay
 away from doing this

Oh, I forget the texture coordinates is homogeneous coordinates too, so the
texture corrdinates is used with TEXTURE_2D is (s/q, t/q) actually.
with object coordinate (x, y, z, w), the s, q texture coord is:
s = s1 * x + s2 * y + s3 * z + s4 * w
q = q1 * x + q2 * y + q3 * z + q4 * w
if we normalized object coordinate to (x/w, y/w, z/w, 1.0)
s' = s1 * x / w + s2 * y / w + s3 * z / w + s4
q' = q1 * x / w + q2 * y / w + q3 * z / w + q4

s/q = s'/q'

R200 is correct, and you. The real world is 3D world, we can only use three 
indenpendent parameters talk with it.

But can I set q coordinate to 1.0f when I disable texgen Q?


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


[Bug 20679] [i915] blank screen with 2.6.29-rc kernels

2009-03-17 Thread bugzilla-daemon
http://bugs.freedesktop.org/show_bug.cgi?id=20679





--- Comment #1 from Sami Kerola kerol...@iki.fi  2009-03-17 04:25:36 PST ---
(In reply to comment #0)

Results with 2.6.29-rc8-00124 are different.

 Mode switching. When switching modes nearly 50% of times when I come back to X
 screen is blank. Retry works fine.

100% of switches work.

 Deattach from dock while system running test. After this X was never blank, 
 but
 console mode was always. The console mode was perfectly usable.

Same as reattach.

 Reattach to dock. System freeze without stacktrace and the Magic SysRq keys 
 did
 nothing. All of my reattachment tries has always caused this, and because
 behavior is so annoying I have done this only three times.

Screen is not blank, it is frozen with what ever there happens to be. Input
does nothing including SysRq stuff.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


[Bug 20626] r200 texgen with glVertex4f(x, y, z, w) error

2009-03-17 Thread bugzilla-daemon
http://bugs.freedesktop.org/show_bug.cgi?id=20626


raoxianhong raoxianh...@163.net changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |




--- Comment #9 from raoxianhong raoxianh...@163.net  2009-03-17 04:57:23 PST 
---
(In reply to comment #8)
 (In reply to comment #7)
  (In reply to comment #6)
   The problem is solved by update mesa version. But I must DISABLE
   GL_TEXTURE_GEN_R and GL_TEXTURE_GEN_Q to do it. If GL_TEXTURE_GEN_R or
   GL_TEXTURE_GEN_Q is enabled, R200 looks line to object coord to normalized
   (x/w, y/w, z/w, 1.0), it is same when I use with ATI's driver under 
   windows XP,
   so it must be a limitation of R200. (and I get the same result on RADEON 
   X300,
   X1300)
  I'm not sure I follow you there. If you get the same results on X300 and 
  X1300
  then possibly the results might be correct. Clearly if you disable
  GL_TEXTURE_GEN_R and GL_TEXTURE_GEN_Q results are expected to be different.
  In the example you gave, what coords do you get?
  The coords after texgen for your four vertices should be
  (1.0, 0.0, 2.0, 2.0)
  (1.0, 2.0, 2.0, 2.0)
  (0.5, 2.0, 2.0, 2.0)
  (0.25, 0.0, 1.0, 1.0)
  hence after the q divide (and ignoring the unused r coord)
  (0.5, 0.0)
  (0.5, 1.0)
  (0.25, 1.0)
  (0.25, 0.0)
  Is that different to what you get?
  Note that if you disable some of the texgen coords, the r200 _will_ produce
  bogus results in some cases, and I think it's generally a good idea to stay
  away from doing this
 Oh, I forget the texture coordinates is homogeneous coordinates too, so the
 texture corrdinates is used with TEXTURE_2D is (s/q, t/q) actually.
 with object coordinate (x, y, z, w), the s, q texture coord is:
 s = s1 * x + s2 * y + s3 * z + s4 * w
 q = q1 * x + q2 * y + q3 * z + q4 * w
 if we normalized object coordinate to (x/w, y/w, z/w, 1.0)
 s' = s1 * x / w + s2 * y / w + s3 * z / w + s4
 q' = q1 * x / w + q2 * y / w + q3 * z / w + q4
 s/q = s'/q'
 R200 is correct, and you. The real world is 3D world, we can only use three 
 indenpendent parameters talk with it.
 But can I set q coordinate to 1.0f when I disable texgen Q?

The bit R200_TEXGEN_FORCE_W_TO_ONE of the register R200_SE_TCL_TEX_PROC_CTL_0  
may be used to set different Object coordinate for texgen.
for vertex coordinate (x, y, z, w), if R200_TEXGEN_FORCE_W_TO_ONE is set,
texgen
get the texture coordinate as 
s = s1 * x + s2 * y + s3 * z + s4;
q = q1 * x + q2 * y + q3 * z + q4;
we set q1 = q2 = q3 = 0.0f and q4 = 1.0f and get q = 1.0f, thus we generate
texture
coordinate to s = s1 * x + s2 * y + s3 * z + s4; and vertex coordinate as 
(x, y, z, w).
to do that, replace line 2421 of r200_state.c(mesa ver 7.2): 
   tpc = (rmesa-TexMatEnabled | rmesa-TexGenEnabled);
with
   tpc = (rmesa-TexMatEnabled | rmesa-TexGenEnabled) |
R200_TEXGEN_FORCE_W_TO_ONE;   
any better result?   


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


[Bug 20626] r200 texgen with glVertex4f(x, y, z, w) error

2009-03-17 Thread bugzilla-daemon
http://bugs.freedesktop.org/show_bug.cgi?id=20626





--- Comment #10 from Roland Scheidegger srol...@tungstengraphics.com  
2009-03-17 06:38:07 PST ---
(In reply to comment #8)
 R200 is correct, and you. The real world is 3D world, we can only use three 
 indenpendent parameters talk with it.
 
 But can I set q coordinate to 1.0f when I disable texgen Q?
As said the chip might have problem with disabling only some texgen coords,
though in this case if you don't need a texture matrix it might be fine.
You can play with R200_TEXGEN_FORCE_W_TO_ONE but this setting doesn't seem
useful to generate OpenGL-compliant results.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


[Bug 12419] possible circular locking dependency on i915 dma

2009-03-17 Thread bugme-daemon
http://bugzilla.kernel.org/show_bug.cgi?id=12419


sits...@yahoo.com changed:

   What|Removed |Added

 AssignedTo|drivers_video-...@kernel-   |sits...@yahoo.com
   |bugs.osdl.org   |
 Status|NEW |ASSIGNED




--- Comment #14 from sits...@yahoo.com  2009-03-17 08:01 ---
OK if this latest fix went into for-review (it was kind of hard to tell because
the dates are unchanged but the commit id has) then the problem has been
resolved (only the classic [drm:drm_wait_vblank] *ERROR* failed to acquire
vblank counter, -22 seems to be logged).


-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.
You are the assignee for the bug, or are watching the assignee.

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


[Bug 12419] possible circular locking dependency on i915 dma

2009-03-17 Thread bugme-daemon
http://bugzilla.kernel.org/show_bug.cgi?id=12419


sits...@yahoo.com changed:

   What|Removed |Added

 AssignedTo|sits...@yahoo.com   |drivers_video-...@kernel-
   ||bugs.osdl.org
 Status|ASSIGNED|NEW




-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


Object move evict in new ttm

2009-03-17 Thread Jerome Glisse
Hi,

Ask ttm to validate buffer from system to vram ttm call
driver-bo_move with evict=false which i guess is right
as the object will now be in GPU address space. So for
the move i need to allocate a temporary GTT space. Here
is what i do

setup a tmp ttm_mem_reg with numpages=bo numpages
call ttm_bo_mem_space to get gtt space
ttm_tt_bind it
do my dma blit
call ttm_bo_move_accel_cleanup with the dmafence

So accel_cleanup call ttm_buffer_object_transfer which
ref the fence and create a ghost object to hold the
previous location.

What i don't get is how and when the ghost object is
released, so far for me it seems it's never released
and so i quickly run with tons of fence object active
while already signaled (not mentioning a bunch of
ghost object).

Cheers, 
Jerome Glisse gli...@freedesktop.org

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


[Bug 12861] Xorg fails to start Failed to allocate space for kernel memory manager

2009-03-17 Thread bugme-daemon
http://bugzilla.kernel.org/show_bug.cgi?id=12861





--- Comment #19 from se...@hallyn.com  2009-03-17 08:34 ---
(In reply to comment #4)
 Bug is still present in 2.6.29-rc8
 
 I can actually get X to start if I set i915.modeset=1, but not in a useable
 state (no cursor and no keyboard)
 
 I did explicitly confirm bisect, on second run oldconfig asked about dma
 remapping (set to N)
 
 kant ~ # diff -u /boot/config /boot/config.old
 -# CONFIG_DMAR_DEFAULT_ON is not set
 
 With 99cbb86180bccd77f331f6e8eb7ce26aeea2cb72 I got normal operation, the 
 other
 reproduces the bug.
 
   491  git checkout 99cbb86180bccd77f331f6e8eb7ce26aeea2cb72

Wait, what is this one?

Was this one successfull?  BC this commit is from Mar 13 and is actually
not applied in Linus' main branch (IIUC).

   492  cp /boot/config-2.6.29-rc4 .config
   493  make oldconfig
   494  make -j3 all  make install modules_install  make clean mrproper 
 init 6
   495  cd /usr/src/linux-2.6
   496  git checkout fb5ae64fdde29236e1a15e0366946df7060f41f2

You also didn't copy /boot/config-2.6.29-rc4 .config between the two builds. 
Which could be a problem precisely because the first tree you compiled was a
month newer than the second one.

So I think you want to try the following to really confirm whether X starts
failing at the commit being blamed:

make clean  make distclean   make mrproper  clean this bad boy out
ferreal

git checkout 1d7b33f77b2d8b0b1ee767e6f8f05cbd9d72cb7c
cp /boot/config-2.6.29-rc4 .config
make oldconfig  make -j3 all  make install modules_install  init 6
[ confirm that X works ]

git checkout fb5ae64fdde29236e1a15e0366946df7060f41f2
cp /boot/config-2.6.29-rc4 .config
make oldconfig  make -j3 all  make install modules_install  init 6
[ confirm that X does not work ]


-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


[Bug 12861] Xorg fails to start Failed to allocate space for kernel memory manager

2009-03-17 Thread bugme-daemon
http://bugzilla.kernel.org/show_bug.cgi?id=12861





--- Comment #20 from se...@hallyn.com  2009-03-17 08:38 ---
Sorry, the first commit id should be:

14fa43f53ff3a9c3d8b9662574b7369812a31a97

not

1d7b33f77b2d8b0b1ee767e6f8f05cbd9d72cb7c


-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


[Bug 20626] r200 texgen with glVertex4f(x, y, z, w) error

2009-03-17 Thread bugzilla-daemon
http://bugs.freedesktop.org/show_bug.cgi?id=20626





--- Comment #11 from raoxianhong raoxianh...@163.net  2009-03-17 08:41:29 PST 
---
(In reply to comment #10)
 (In reply to comment #8)
  R200 is correct, and you. The real world is 3D world, we can only use three 
  indenpendent parameters talk with it.
  
  But can I set q coordinate to 1.0f when I disable texgen Q?
 As said the chip might have problem with disabling only some texgen coords,
 though in this case if you don't need a texture matrix it might be fine.
 You can play with R200_TEXGEN_FORCE_W_TO_ONE but this setting doesn't seem
 useful to generate OpenGL-compliant results.

Yes, I do the same operation under ATI's windows driver, and no problem with
disabling texgen R or Q, (and when enable all of texgen STRQ, they looks like
not set R200_TEXGEN_FORCE_W_TO_ONE), so I guess they maybe have another way to
set q to 1.0 when disable texgen Q. To play with R200_TEXGEN_FORCE_W_TO_ONE is
not a right way but a useful way sometimes.
And sometimes when we disable some of the texgen coords, the r200 produce
unexperted results, this maybe we have no right way to generate q coord(for
examples, q is zero), but ATI can do it!


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


[Bug 12861] Xorg fails to start Failed to allocate space for kernel memory manager

2009-03-17 Thread bugme-daemon
http://bugzilla.kernel.org/show_bug.cgi?id=12861





--- Comment #21 from se...@hallyn.com  2009-03-17 08:41 ---
In fact, it might not hurt to start in a fresh directory doing

git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git

and testing there.


-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


[Bug 12861] Xorg fails to start Failed to allocate space for kernel memory manager

2009-03-17 Thread bugme-daemon
http://bugzilla.kernel.org/show_bug.cgi?id=12861





--- Comment #22 from se...@hallyn.com  2009-03-17 08:49 ---
One more note - if you do a:

git diff 99cbb86180bccd77f331f6e8eb7ce26aeea2cb72 
fb5ae64fdde29236e1a15e0366946df7060f41f2

you see there are in fact a lot of changes, including agp and drm related
changes.


-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


Re: Object move evict in new ttm

2009-03-17 Thread Thomas Hellström
Jerome Glisse wrote:
 Hi,

 Ask ttm to validate buffer from system to vram ttm call
 driver-bo_move with evict=false which i guess is right
 as the object will now be in GPU address space. So for
 the move i need to allocate a temporary GTT space. Here
 is what i do

 setup a tmp ttm_mem_reg with numpages=bo numpages
 call ttm_bo_mem_space to get gtt space
 ttm_tt_bind it
 do my dma blit
 call ttm_bo_move_accel_cleanup with the dmafence

 So accel_cleanup call ttm_buffer_object_transfer which
 ref the fence and create a ghost object to hold the
 previous location.

 What i don't get is how and when the ghost object is
 released, so far for me it seems it's never released
 and so i quickly run with tons of fence object active
 while already signaled (not mentioning a bunch of
 ghost object).

 Cheers, 
 Jerome Glisse gli...@freedesktop.org
   
Jerome,
That looks like a bug in the ttm_bo_move_accel_cleanup function.
The ghost object is never unreferenced.

What happens if you put a
ttm_bo_unref((old_obj) after
ttm_bo_unreserve(old_obj)
?

/Thomas




--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


[Bug 20679] [i915] blank screen with 2.6.29-rc kernels

2009-03-17 Thread bugzilla-daemon
http://bugs.freedesktop.org/show_bug.cgi?id=20679





--- Comment #2 from Dan Nicholson dbn.li...@gmail.com  2009-03-17 09:20:39 
PST ---
(In reply to comment #1)
 (In reply to comment #0)
 
  Reattach to dock. System freeze without stacktrace and the Magic SysRq keys 
  did
  nothing. All of my reattachment tries has always caused this, and because
  behavior is so annoying I have done this only three times.
 
 Screen is not blank, it is frozen with what ever there happens to be. Input
 does nothing including SysRq stuff.

I was having problems with docking on a different laptop (Thinkpad X60) that
were because of acpi bugs. Can you check syslog to make sure this is drm
causing the issue and not another subsystem? I was getting a flood of events
that essentially made the system lock up.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


Re: Object move evict in new ttm

2009-03-17 Thread Jerome Glisse
On Tue, 17 Mar 2009 17:06:22 +0100
Thomas Hellström tho...@shipmail.org wrote:

 Jerome Glisse wrote:
  Hi,
 
  Ask ttm to validate buffer from system to vram ttm call
  driver-bo_move with evict=false which i guess is right
  as the object will now be in GPU address space. So for
  the move i need to allocate a temporary GTT space. Here
  is what i do
 
  setup a tmp ttm_mem_reg with numpages=bo numpages
  call ttm_bo_mem_space to get gtt space
  ttm_tt_bind it
  do my dma blit
  call ttm_bo_move_accel_cleanup with the dmafence
 
  So accel_cleanup call ttm_buffer_object_transfer which
  ref the fence and create a ghost object to hold the
  previous location.
 
  What i don't get is how and when the ghost object is
  released, so far for me it seems it's never released
  and so i quickly run with tons of fence object active
  while already signaled (not mentioning a bunch of
  ghost object).
 
  Cheers, 
  Jerome Glisse gli...@freedesktop.org

 Jerome,
 That looks like a bug in the ttm_bo_move_accel_cleanup function.
 The ghost object is never unreferenced.
 
 What happens if you put a
 ttm_bo_unref((old_obj) after
 ttm_bo_unreserve(old_obj)
 ?
 
 /Thomas
 
 
 

This seems to fix the problem.

Cheers,
Jerome Glisse gli...@freedesktop.org

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


[Bug 20626] r200 texgen with glVertex4f(x, y, z, w) error

2009-03-17 Thread bugzilla-daemon
http://bugs.freedesktop.org/show_bug.cgi?id=20626





--- Comment #12 from raoxianhong raoxianh...@163.net  2009-03-17 18:06:53 PST 
---
(In reply to comment #11)
 (In reply to comment #10)
  (In reply to comment #8)
   R200 is correct, and you. The real world is 3D world, we can only use 
   three 
   indenpendent parameters talk with it.
   
   But can I set q coordinate to 1.0f when I disable texgen Q?
  As said the chip might have problem with disabling only some texgen coords,
  though in this case if you don't need a texture matrix it might be fine.
  You can play with R200_TEXGEN_FORCE_W_TO_ONE but this setting doesn't seem
  useful to generate OpenGL-compliant results.
 Yes, I do the same operation under ATI's windows driver, and no problem with
 disabling texgen R or Q, (and when enable all of texgen STRQ, they looks like
 not set R200_TEXGEN_FORCE_W_TO_ONE), so I guess they maybe have another way to
 set q to 1.0 when disable texgen Q. To play with R200_TEXGEN_FORCE_W_TO_ONE is
 not a right way but a useful way sometimes.
 And sometimes when we disable some of the texgen coords, the r200 produce
 unexperted results, this maybe we have no right way to generate q coord(for
 examples, q is zero), but ATI can do it!

An acceptable way maybe when user disable texgen Q, driver can enable it on
R200, and set q1 = q2 = q3 = 0.0f, and q4 = 1.0f, and set the
R200_TEXGEN_FORCE_W_TO_ONE, thus we can get q to 1.0f. it is OpenGL-compliant!


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


[Bug 20626] r200 texgen with glVertex4f(x, y, z, w) error

2009-03-17 Thread bugzilla-daemon
http://bugs.freedesktop.org/show_bug.cgi?id=20626





--- Comment #13 from Roland Scheidegger srol...@tungstengraphics.com  
2009-03-17 18:32:26 PST ---
(In reply to comment #12)
  Yes, I do the same operation under ATI's windows driver, and no problem with
  disabling texgen R or Q, (and when enable all of texgen STRQ, they looks 
  like
  not set R200_TEXGEN_FORCE_W_TO_ONE), so I guess they maybe have another way 
  to
  set q to 1.0 when disable texgen Q. To play with R200_TEXGEN_FORCE_W_TO_ONE 
  is
  not a right way but a useful way sometimes.
  And sometimes when we disable some of the texgen coords, the r200 produce
  unexperted results, this maybe we have no right way to generate q coord(for
  examples, q is zero), but ATI can do it!
 
 An acceptable way maybe when user disable texgen Q, driver can enable it on
 R200, and set q1 = q2 = q3 = 0.0f, and q4 = 1.0f, and set the
 R200_TEXGEN_FORCE_W_TO_ONE, thus we can get q to 1.0f. it is OpenGL-compliant!

Maybe I'm missing something, but I fail to see how that can work. If you set
R200_TEXGEN_FORCE_W_TO_ONE how can the result be correct if the incoming vertex
w is != 1.0? I think that basically would just eliminate the w divide which
can't possibly be correct.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


[Bug 14967] Kernel hardlocks on X startup

2009-03-17 Thread bugzilla-daemon
http://bugs.freedesktop.org/show_bug.cgi?id=14967





--- Comment #1 from Ben Skeggs skeg...@gmail.com  2009-03-17 20:38:38 PST ---
Did you still have this issue?  Those lines haven't been added back in, I'm not
certain why they'd be necessary either.  If you still have the issue can you
post kernel logs (with drm module loaded with debug=1) and Xorg.0.log.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


[Bug 20626] r200 texgen with glVertex4f(x, y, z, w) error

2009-03-17 Thread bugzilla-daemon
http://bugs.freedesktop.org/show_bug.cgi?id=20626


raoxianhong raoxianh...@163.net changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||FIXED




--- Comment #14 from raoxianhong raoxianh...@163.net  2009-03-17 21:34:50 PST 
---
(In reply to comment #13)
 (In reply to comment #12)
   Yes, I do the same operation under ATI's windows driver, and no problem 
   with
   disabling texgen R or Q, (and when enable all of texgen STRQ, they looks 
   like
   not set R200_TEXGEN_FORCE_W_TO_ONE), so I guess they maybe have another 
   way to
   set q to 1.0 when disable texgen Q. To play with 
   R200_TEXGEN_FORCE_W_TO_ONE is
   not a right way but a useful way sometimes.
   And sometimes when we disable some of the texgen coords, the r200 produce
   unexperted results, this maybe we have no right way to generate q 
   coord(for
   examples, q is zero), but ATI can do it!
  
  An acceptable way maybe when user disable texgen Q, driver can enable it on
  R200, and set q1 = q2 = q3 = 0.0f, and q4 = 1.0f, and set the
  R200_TEXGEN_FORCE_W_TO_ONE, thus we can get q to 1.0f. it is 
  OpenGL-compliant!
 Maybe I'm missing something, but I fail to see how that can work. If you set
 R200_TEXGEN_FORCE_W_TO_ONE how can the result be correct if the incoming 
 vertex
 w is != 1.0? I think that basically would just eliminate the w divide which
 can't possibly be correct.

Oh, It looks like we can't find a way to disable textgen Q on r200 and set q to
1.0f, using R200_TEXGEN_FORCE_W_TO_ONE can only provide a way to control
texture coordinate for special task, but not an OpenGL-compliant way.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
--
___
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel