When ColorTiling is enabled, macrotiled small pixmaps cannot be used as textures because of MACRO_SWITCH. The attached patch fixes that and this issue is well described in the commit message. Please review.<br><br>This also fixes some piglit tests for r300g with ColorTiling enabled, e.g. glean/readPixSanity and shaders/fp-fog among others. (The texturing/texredefine test fails due to a flush missing somewhere, but the driver now passes more tests than without ColorTiling.)<br>
<br>This fix is only for r300. I am not sure whether there is the same issue on non-r300 GPUs too.<br><br>Also can ColorTiling be enabled by default on KMS now?<br><br>-Marek<br>