mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-05 12:40:26 +01:00
mesa: Fix copy-and-paste bug in do_row_3D
Several of the half-float cases used 4 as the texel size when it
should have been some smaller value.
NOTE: This is a candidate for the 8.0 branch.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=43324
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=43325
(cherry picked from commit 5c341b7df3)
This commit is contained in:
parent
65b9c1dee6
commit
4635e26db2
1 changed files with 3 additions and 3 deletions
|
|
@ -991,7 +991,7 @@ do_row_3D(GLenum datatype, GLuint comps, GLint srcWidth,
|
|||
}
|
||||
}
|
||||
else if ((datatype == GL_HALF_FLOAT_ARB) && (comps == 3)) {
|
||||
DECLARE_ROW_POINTERS(GLhalfARB, 4);
|
||||
DECLARE_ROW_POINTERS(GLhalfARB, 3);
|
||||
|
||||
for (i = j = 0, k = k0; i < (GLuint) dstWidth;
|
||||
i++, j += colStride, k += colStride) {
|
||||
|
|
@ -1001,7 +1001,7 @@ do_row_3D(GLenum datatype, GLuint comps, GLint srcWidth,
|
|||
}
|
||||
}
|
||||
else if ((datatype == GL_HALF_FLOAT_ARB) && (comps == 2)) {
|
||||
DECLARE_ROW_POINTERS(GLhalfARB, 4);
|
||||
DECLARE_ROW_POINTERS(GLhalfARB, 2);
|
||||
|
||||
for (i = j = 0, k = k0; i < (GLuint) dstWidth;
|
||||
i++, j += colStride, k += colStride) {
|
||||
|
|
@ -1010,7 +1010,7 @@ do_row_3D(GLenum datatype, GLuint comps, GLint srcWidth,
|
|||
}
|
||||
}
|
||||
else if ((datatype == GL_HALF_FLOAT_ARB) && (comps == 1)) {
|
||||
DECLARE_ROW_POINTERS(GLhalfARB, 4);
|
||||
DECLARE_ROW_POINTERS(GLhalfARB, 1);
|
||||
|
||||
for (i = j = 0, k = k0; i < (GLuint) dstWidth;
|
||||
i++, j += colStride, k += colStride) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue