Lines Matching defs:width
989 Texture::Storage(gl, target, deMax32(mState.levels, mState.samples), format, mState.width, mState.height,
1030 Texture::Storage(gl, target, deMax32(mState.levels, mState.samples), format, mState.width, mState.height,
1056 GLint width;
1059 SparseTextureUtils::getTextureLevelSize(target, mState, level, width, height, depth);
1061 if (width > 0 && height > 0 && depth >= mState.minDepth)
1066 GLint texSize = width * height * depth * mState.format.getPixelSize();
1076 Texture::SubImage(gl, target, level, 0, 0, 0, width, height, depth, transferFormat.format,
1116 gl.dispatchCompute(width, height, depth);
1155 GLint width;
1158 SparseTextureUtils::getTextureLevelSize(target, mState, level, width, height, depth);
1160 //Committed region is limited to 1/2 of width
1161 GLint widthCommitted = width / 2;
1171 GLint texSize = width * height * depth * mState.format.getPixelSize();
1192 GLubyte* dataRegion = exp_data + ((x + y * width) * pixelSize);
1193 GLubyte* outDataRegion = out_data + ((x + y * width) * pixelSize);
1209 GLint texSize = width * height * mState.format.getPixelSize();
1237 GLubyte* dataRegion = exp_data + ((x + y * width) * pixelSize);
1238 GLubyte* outDataRegion = out_data + ((x + y * width) * pixelSize);
1250 GLint texSize = width * height * depth;
1271 Texture::Storage(gl, verifyTarget, 1, GL_R8, width, height, depth);
1279 Texture::SubImage(gl, verifyTarget, 0, 0, 0, 0, width, height, depth, GL_RED, GL_UNSIGNED_BYTE,
1325 gl.dispatchCompute(width, height, depth);
1338 GLubyte* dataRegion = exp_data + ((x + y * width) + z * width * height);
1339 GLubyte* outDataRegion = out_data + ((x + y * width) + z * width * height);
1628 GLint width;
1631 SparseTextureUtils::getTextureLevelSize(target, mState, level, width, height, depth);
1633 //Committed region is limited to 1/2 of width
1634 GLuint widthCommitted = width / 2;
1655 prepareDepthStencilFramebuffer(gl, width, height);
1666 result = result && verifyStencilTest(gl, program, width, height, widthCommitted);
1669 result = result && verifyDepthTest(gl, program, width, height, widthCommitted);
1673 result = result && verifyDepthBoundsTest(gl, program, width, height, widthCommitted);
1684 * @param width Framebuffer width
1687 void UncommittedRegionsAccessTestCase::prepareDepthStencilFramebuffer(const Functions& gl, GLint width, GLint height)
1695 gl.renderbufferStorage(GL_RENDERBUFFER, GL_DEPTH_STENCIL, width, height);
1700 gl.renderbufferStorageMultisample(GL_RENDERBUFFER, mState.samples, GL_DEPTH_STENCIL, width, height);
1710 gl.viewport(0, 0, width, height);
1749 GLint width;
1752 SparseTextureUtils::getTextureLevelSize(target, mState, level, width, height, depth);
1754 //Committed region is limited to 1/2 of width
1755 GLint widthCommitted = width / 2;
1766 GLint texSize = width * height * depth * mState.format.getPixelSize();
1783 for (GLint x = widthCommitted; result && x < width; ++x)
1788 GLubyte* dataRegion = exp_data + ((x + y * width) * pixelSize);
1789 GLubyte* outDataRegion = out_data + ((x + y * width) * pixelSize);
1816 GLint texSize = width * height * mState.format.getPixelSize();
1839 for (GLint x = widthCommitted; result && x < width; ++x)
1844 GLubyte* dataRegion = exp_data + ((x + y * width) * pixelSize);
1845 GLubyte* outDataRegion = out_data + ((x + y * width) * pixelSize);
1879 GLint texSize = width * height * depth;
1894 Texture::Storage(gl, verifyTarget, 1, GL_R8, width, height, depth);
1902 Texture::SubImage(gl, verifyTarget, 0, 0, 0, 0, width, height, depth, GL_RED, GL_UNSIGNED_BYTE,
1948 gl.dispatchCompute(width, height, depth);
1957 for (GLint x = widthCommitted; x < width; ++x)
1961 GLubyte* dataRegion = exp_data + ((x + y * width) + z * width * height);
1962 GLubyte* outDataRegion = out_data + ((x + y * width) + z * width * height);
2007 GLint width;
2010 SparseTextureUtils::getTextureLevelSize(target, mState, level, width, height, depth);
2012 //Committed region is limited to 1/2 of width
2013 GLint widthCommitted = width / 2;
2031 GLint texSize = width * height * depth;
2046 Texture::Storage(gl, verifyTarget, 1, GL_R8, width, height, depth);
2054 Texture::SubImage(gl, verifyTarget, 0, 0, 0, 0, width, height, depth, GL_RED, GL_UNSIGNED_BYTE,
2100 gl.uniform1i(3, widthCommitted /* committed width */);
2102 gl.dispatchCompute(width, height, depth);
2111 for (GLint x = 0; x < width; ++x)
2115 GLubyte* dataRegion = exp_data + ((x + y * width) + z * width * height);
2116 GLubyte* outDataRegion = out_data + ((x + y * width) + z * width * height);
2146 * @param width Texture width
2148 * @param widthCommitted Committed region width
2152 bool UncommittedRegionsAccessTestCase::verifyStencilTest(const Functions& gl, ShaderProgram& program, GLint width,
2169 dataStencil.resize(width * height);
2172 gl.readPixels(0, 0, width, height, GL_STENCIL_INDEX, GL_UNSIGNED_BYTE, (GLvoid*)dataStencilPtr);
2173 for (int x = widthCommitted; x < width; ++x)
2176 if (dataStencilPtr[x + y * width] != 0x00)
2191 * @param width Texture width
2193 * @param widthCommitted Committed region width
2197 bool UncommittedRegionsAccessTestCase::verifyDepthTest(const Functions& gl, ShaderProgram& program, GLint width,
2213 dataDepth.resize(width * height);
2216 gl.readPixels(0, 0, width, height, GL_DEPTH_COMPONENT, GL_UNSIGNED_INT, (GLvoid*)dataDepthPtr);
2217 for (int x = widthCommitted; x < width; ++x)
2220 if (dataDepthPtr[x + y * width] != 0xFFFFFFFF)
2235 * @param width Texture width
2237 * @param widthCommitted Committed region width
2241 bool UncommittedRegionsAccessTestCase::verifyDepthBoundsTest(const Functions& gl, ShaderProgram& program, GLint width,
2257 dataDepth.resize(width * height);
2260 gl.readPixels(0, 0, width, height, GL_DEPTH_COMPONENT, GL_UNSIGNED_INT, (GLvoid*)dataDepthPtr);
2261 for (int x = widthCommitted; x < width; ++x)
2264 if (dataDepthPtr[x + y * width] != 0xFFFFFFFF)
2759 GLint width;
2762 SparseTextureUtils::getTextureLevelSize(target, mState, level, width, height, depth);
2764 if (width > 0 && height > 0 && depth >= mState.minDepth)
2769 GLint texSize = width * height * depth * mState.format.getPixelSize();
2814 gl.dispatchCompute(width, height, depth);
2865 GLint width;
2868 SparseTextureUtils::getTextureLevelSize(target, mState, level, width, height, depth);
2870 //Committed region is limited to 1/2 of width
2871 GLint widthCommitted = width / 2;
2881 GLint texSize = width * height * depth;
2906 Texture::Storage(gl, verifyTarget, 1, GL_R8, width, height, depth);
2914 Texture::SubImage(gl, verifyTarget, 0, 0, 0, 0, width, height, depth, GL_RED, GL_UNSIGNED_BYTE,
2951 replaceToken("<TEX_WIDTH>", de::toString(width).c_str(), shader);
2999 // Pass committed region width to shader
3000 gl.uniform1i(3, widthCommitted /* committed region width */);
3002 gl.dispatchCompute(width, height, depth);
3014 for (GLint x = 0; x < width; ++x)
3016 GLubyte* dataRegion = exp_data + x + y * width + z * width * height;
3017 GLubyte* outDataRegion = out_data + x + y * width + z * width * height;