<div class="gmail_quote">2010/11/18 Brian Paul <span dir="ltr">&lt;<a href="mailto:brianp@vmware.com">brianp@vmware.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div class="im">On 11/18/2010 01:10 AM, Török Edwin wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On Wed, 17 Nov 2010 15:23:47 -0700<br>
Brian Paul&lt;<a href="mailto:brian.e.paul@gmail.com" target="_blank">brian.e.paul@gmail.com</a>&gt;  wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
2010/11/17 Török Edwin&lt;<a href="mailto:edwintorok@gmail.com" target="_blank">edwintorok@gmail.com</a>&gt;:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br>
<br>
Thought I&#39;d do a Bugle trace to see if it logs any errors that could<br>
cause f.d.o bug #31667.<br>
<br>
I&#39;ve seen just these two:<br>
glTexImage3D(GL_TEXTURE_3D, 0, GL_RGBA, 512, 128, 16,<br>
0, GL_RGBA, GL_UNSIGNED_BYTE, 0x1af93cf0 -<br>
^[NOTICE] <a href="http://showerror.gl" target="_blank">showerror.gl</a>:  GL_INVALID_VALUE in glTexImage3D<br>
<br>
glTexImage3D(GL_TEXTURE_3D, 0, GL_RGBA, 512, 128, 16, 0, GL_RGBA,<br>
GL_UNSIGNED_BYTE, 0x1cd22480<br>
^[NOTICE] <a href="http://showerror.gl" target="_blank">showerror.gl</a>:  GL_INVALID_VALUE in glTexImage3D<br>
<br>
Is 512x128 an invalid size for r600c/r600g?<br>
<br>
I tried using gldb-gui, but it crashes when trying to retrieve the<br>
states. Is it supposed to work with r600c or r600g?<br>
</blockquote>
<br>
Run glxinfo -l and see what GL_MAX_3D_TEXTURE_SIZE says.<br>
</blockquote>
<br>
Says 256. Is that a limitation of the hardware, the r600 driver, or<br>
mesa?<br>
</blockquote>
<br></div>
I don&#39;t know what the limit is on r600 off-hand, but 256 is the current maximum in Mesa.  But we could easily bump it up to 512 if R600 or other hardware supports it.  See MAX_3D_TEXTURE_LEVELS in src/mesa/main/config.h<br>


<br>
I&#39;ve increased MAX_3D_TEXTURE_LEVELS every few years as PCs get more and more memory.  Bear in mind that a 512x512x512xRGB texture would use 512MB of memory.  Doubling the limit again would be 4GB.<br></blockquote></div>

<br>Hi Brian,<br><br>This really should be raised to the same value as GL_MAX_TEXTURE_SIZE. How would you create a 8192x4x4 R8 texture then? The r600 hardware supports it and it takes very little memory. Even the old r300 can do e.g. 2048x4x4.<br>

<br>Best regards,<br>Marek<br>