[2.1.1] Bug : Broken HQNx algorithms (in comp. to 2.0.05)

Bugs that have been resolved.

Moderator: Graf Zahl

Locked
User avatar
theleo_ua
Posts: 34
Joined: Sun Mar 04, 2012 17:24
Contact:

[2.1.1] Bug : Broken HQNx algorithms (in comp. to 2.0.05)

Post by theleo_ua »

1) Run GZdoom 2.1.1 and 2.0.05 with -iwad heretic.wad
2) type "summon crossbow"
3) Choose next options: http://storage7.static.itmages.ru/i/16/ ... da66ff.png
4) Observe, that crossbow is displayed incorrectly in 2.1.1 (in comparison to 2.0.05), see screenshot above

NOTE: please dont pay attention to "mmx" option in screenshot, because bug reproduced on both "hq4x" and "hq4x mmx" options in 2.1.1

NOTE2: same bug was in 1.8.7 (and wasn't in 2.0.03)
Nothing smells better than a dead Governor in the morning (c) http://www.rpgcodex.net/phpBB/viewtopic ... 026#808026
_mental_
Developer
Developer
Posts: 259
Joined: Sun Aug 07, 2011 13:36

Re: [2.1.1] Bug : Broken HQNx algorithms (in comp. to 2.0.05

Post by _mental_ »

I made a pull request with the fix. I could commit it by myself, but looks like that damn alpha check is cursed :evil: I will be glad if someone else will verify the fix.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Re: [2.1.1] Bug : Broken HQNx algorithms (in comp. to 2.0.05

Post by Graf Zahl »

Why did you shuffle around the meanings of the values in the first place? That was the source of all the problems, it seems.
_mental_
Developer
Developer
Posts: 259
Joined: Sun Aug 07, 2011 13:36

Re: [2.1.1] Bug : Broken HQNx algorithms (in comp. to 2.0.05

Post by _mental_ »

Graf Zahl wrote:Why did you shuffle around the meanings of the values in the first place? That was the source of all the problems, it seems.
Where did I do so? In commit message?
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Re: [2.1.1] Bug : Broken HQNx algorithms (in comp. to 2.0.05

Post by Graf Zahl »

Not this time. In earlier versions 4-6 and 7-9 were swapped and at some point - I think when the asm versions were replaced - they were changed. And this was causing the problems because all the checks were not changed along.
_mental_
Developer
Developer
Posts: 259
Joined: Sun Aug 07, 2011 13:36

Re: [2.1.1] Bug : Broken HQNx algorithms (in comp. to 2.0.05

Post by _mental_ »

Graf Zahl wrote:Not this time. In earlier versions 4-6 and 7-9 were swapped and at some point - I think when the asm versions were replaced - they were changed. And this was causing the problems because all the checks were not changed along.
No, they were not swapped.
Initially, indices from 4 to 6 were used by MMX version. Later it was replaced with generic implementation. Then MMX one was re-added but indices of generic one were not changes.
So, generic implementation occupies indices 4..6 and MMX occupies 7..9. You can check log/blame in your Git client or on GitHub website.

Here is a complete unified diff of changes done to src/gl/textures/gl_hqresize.cpp. It's not so easy to check it without syntax highlight though.
Spoiler:
Locked

Return to “Closed Bugs”