Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
mesa
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2,323
Issues
2,323
List
Boards
Labels
Service Desk
Milestones
Merge Requests
641
Merge Requests
641
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mesa
mesa
Commits
ea1c8cea
Commit
ea1c8cea
authored
Apr 03, 2010
by
Luca Barbieri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gallium/util: fix inverted if is_nop logic in s3tc
parent
b7cd1552
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/gallium/auxiliary/util/u_format_s3tc.c
src/gallium/auxiliary/util/u_format_s3tc.c
+2
-2
No files found.
src/gallium/auxiliary/util/u_format_s3tc.c
View file @
ea1c8cea
...
...
@@ -303,7 +303,7 @@ util_format_dxt3_rgba_unpack_8unorm(uint8_t *dst_row, unsigned dst_stride, const
void
util_format_dxt5_rgba_unpack_8unorm
(
uint8_t
*
dst_row
,
unsigned
dst_stride
,
const
uint8_t
*
src_row
,
unsigned
src_stride
,
unsigned
width
,
unsigned
height
)
{
if
(
is_nop
(
util_format_dxt5_rgba_fetch
))
{
if
(
!
is_nop
(
util_format_dxt5_rgba_fetch
))
{
unsigned
x
,
y
,
i
,
j
;
for
(
y
=
0
;
y
<
height
;
y
+=
4
)
{
const
uint8_t
*
src
=
src_row
;
...
...
@@ -324,7 +324,7 @@ util_format_dxt5_rgba_unpack_8unorm(uint8_t *dst_row, unsigned dst_stride, const
void
util_format_dxt1_rgb_unpack_float
(
float
*
dst_row
,
unsigned
dst_stride
,
const
uint8_t
*
src_row
,
unsigned
src_stride
,
unsigned
width
,
unsigned
height
)
{
if
(
is_nop
(
util_format_dxt1_rgb_fetch
))
{
if
(
!
is_nop
(
util_format_dxt1_rgb_fetch
))
{
unsigned
x
,
y
,
i
,
j
;
for
(
y
=
0
;
y
<
height
;
y
+=
4
)
{
const
uint8_t
*
src
=
src_row
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment