Compare commits

...

7 Commits

Author SHA1 Message Date
Manish Mathai
0c36adc2b8 Merge branch 'texture2d-index-out-of-range' into 'master'
Fix index out of range in Texture2D

See merge request vtk/vtk-m!2954
2024-06-28 14:40:14 -04:00
Kenneth Moreland
fc570a75a5 Merge branch 'release' into master 2024-06-28 11:10:45 -04:00
Kenneth Moreland
cb07d8400c Merge branch 'release-2.0' into release 2024-06-28 11:10:45 -04:00
Kenneth Moreland
f610044d79 Merge topic 'split-contour-bench-2-1' into release-2.0
6f5f65487 Split the contour benchmark into structured/unstructured

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Vicente Bolea <vicente.bolea@kitware.com>
Merge-request: !3239
2024-06-28 11:10:45 -04:00
Kenneth Moreland
6f5f654878 Split the contour benchmark into structured/unstructured
We've been having problems with PerformanceTestBenchContour. In the last
few iteration, the runtime goes way up. We cannot find any reason for
this in the source code. There don't appear to be any particular
problems with memory or tables. The best we can figure is an issue with
the device hardware in the container.

The easy solution should be to break the benchmark into smaller peices
to avoid the problem.
2024-06-26 17:47:27 -04:00
Manish Mathai
fecea93da4 Update render unit test baseline images 2023-01-02 12:28:36 +05:30
Manish Mathai
3f2ca46626 Fix index out of range in Texture2D
When `Texture2DSamplerExecutionObject<>::GetColor()` is called with u or
v as 0, when running with linear filter mode, it can go out of index and
try to access data at location before the texture data array. This fixes
that issue.
2023-01-02 12:05:32 +05:30
4 changed files with 8 additions and 8 deletions

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:25d61b72591e1ecd66a70e1005cb31a5d37b0bba90bec42288dd41118801000e
size 29986
oid sha256:137439af2a14dfaab461b07e643fb45dc8e898690f21ca9514cc794dc4afd50a
size 30144

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:558028eae0ddb162a3c437b7d12c30857f7b964b3dc9bda601e9750db0813fe5
size 31393
oid sha256:c62a7084613dddda80f2fb1c869f5adaef9efe50d6762b92b61aebd9692afcd4
size 31812

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a879c39ef99c13722da91b7178e41a70ac0aaa5735e7cd201899639464f2f151
size 35281
oid sha256:bfca08fc98539bb4241c44b47352e95c5b32e7126545d215291d0e51280709c3
size 35099

@ -145,8 +145,8 @@ public:
VTKM_EXEC
inline ColorType GetLinearFilteredColor(vtkm::Float32 u, vtkm::Float32 v) const
{
u = u * static_cast<vtkm::Float32>(Width) - 0.5f;
v = v * static_cast<vtkm::Float32>(Height) - 0.5f;
u = u * static_cast<vtkm::Float32>(Width - 1);
v = v * static_cast<vtkm::Float32>(Height - 1);
vtkm::Id x = static_cast<vtkm::Id>(vtkm::Floor(u));
vtkm::Id y = static_cast<vtkm::Id>(vtkm::Floor(v));
vtkm::Float32 uRatio = u - static_cast<vtkm::Float32>(x);